14 package cz.vutbr.fit.knot.annotations.entity;
16 import java.io.Serializable;
17 import javax.persistence.Basic;
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.GeneratedValue;
21 import javax.persistence.GenerationType;
22 import javax.persistence.Id;
23 import javax.persistence.NamedQueries;
24 import javax.persistence.NamedQuery;
25 import javax.persistence.Table;
26 import javax.validation.constraints.Size;
27 import javax.xml.bind.annotation.XmlRootElement;
36 @Table(name =
"drupAuthServer")
39 @NamedQuery(name =
"DrupAuthServer.findAll", query =
"SELECT d FROM DrupAuthServer d"),
40 @NamedQuery(name =
"DrupAuthServer.findById", query =
"SELECT d FROM DrupAuthServer d WHERE d.id = :id"),
41 @NamedQuery(name =
"DrupAuthServer.findByIpAddress", query =
"SELECT d FROM DrupAuthServer d WHERE d.ipAddress = :ipAddress"),
42 @NamedQuery(name =
"DrupAuthServer.findByHostName", query =
"SELECT d FROM DrupAuthServer d WHERE d.hostName = :hostName")})
44 private static final long serialVersionUID = 1L;
46 @GeneratedValue(strategy = GenerationType.IDENTITY)
47 @Basic(optional =
false)
52 @Basic(optional = false)
53 @Size(min = 1, max = 255)
54 @Column(name = "ipAddress")
56 private String ipAddress;
59 @Column(name = "hostName")
61 private String hostName;
76 this.ipAddress = ipAddress;
77 this.hostName = hostName;
97 this.ipAddress = ipAddress;
133 this.ipAddress = ipAddress;
151 this.hostName = hostName;
157 hash += (
id != null ? id.hashCode() : 0);
172 DrupAuthServer other = (DrupAuthServer)
object;
173 if ((this.
id == null && other.
id != null) || (this.id != null && !this.id.equals(other.id))) {
181 return "cz.vutbr.fit.knot.annotations.entity.DrupAuthServer[ id=" +
id +
" ]";
DrupAuthServer(Integer id, String ipAddress)
boolean equals(Object object)
Class representing approved drupal authentization server.
DrupAuthServer(String ipAddress, String hostName)
DrupAuthServer(Integer id)
void setIpAddress(String ipAddress)
void setHostName(String hostName)