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.elephant.security.IUser;
32 import org.turro.entities.Entities;
33 import org.turro.entities.IElephantEntity;
34 import org.turro.path.Path;
41 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
45 @GeneratedValue(generator =
"hibernate-uuid")
46 @Column(name=
"IDENTIFIER")
49 @Column(name=
"COMMENTIT_PATH")
53 @JoinColumn(name=
"CREATOR_FK")
54 private org.turro.contacts.Contact creator;
56 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
57 private java.util.Date dateCreation;
63 private boolean accepted;
65 private String author;
67 private String author_email;
69 private String author_web;
71 private String author_ip;
94 this.creator = creator;
102 this.dateCreation = dateCreation;
118 this.accepted = accepted;
126 this.author = author;
134 this.author_email = author_email;
142 this.author_web = author_web;
150 this.author_ip = author_ip;
156 if(creator !=
null) {
164 if(creator !=
null) {
166 return c !=
null ? c.
getValue() : author_email;
173 if(creator !=
null) {
175 return c !=
null ? c.
getValue() : author_web;
static IElephantEntity getController(String path)
static final String CONNECTOR_EMAIL