19 package org.turro.contacts;
21 import java.io.Serializable;
22 import java.util.Date;
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.GeneratedValue;
26 import javax.persistence.Id;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.Temporal;
29 import org.zkoss.lang.Strings;
36 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
37 public class InTouch implements Serializable {
40 @GeneratedValue(generator =
"hibernate-uuid")
41 @Column(name=
"IDENTIFIER")
44 @Column(name=
"INTOUCH_NAME")
47 @Column(name=
"INTOUCH_PATH")
50 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
51 private java.util.Date control;
59 private String description;
74 this.control = control;
98 this.contact = contact;
106 this.address = address;
114 this.description = description;
120 return Strings.isBlank(path) ||
121 Strings.isBlank(name) || contact ==
null;