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.JoinColumn;
28 import javax.persistence.Lob;
29 import javax.persistence.ManyToOne;
30 import javax.persistence.Temporal;
31 import org.turro.string.Strings;
38 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
42 @GeneratedValue(generator =
"hibernate-uuid")
43 @Column(name=
"IDENTIFIER")
46 private String describeId;
48 @Column(name=
"COMMENTIT_PATH")
52 @JoinColumn(name=
"CREATOR_FK")
53 private org.turro.contacts.Contact creator;
55 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
56 private java.util.Date dateCreation;
79 this.describeId = describeId;
95 this.creator = creator;
103 this.dateCreation = dateCreation;
115 if(Strings.isBlank(wiki) && !Strings.isBlank(body)) {
116 wiki =
"$no_wiki\n" + body;
128 return !Strings.isBlank(wiki) ||
id ==
null || Strings.isBlank(body);