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.ManyToOne;
29 import javax.persistence.Temporal;
30 import org.turro.elephant.security.IUser;
31 import org.turro.entities.Entities;
32 import org.turro.entities.IElephantEntity;
33 import org.turro.path.Path;
40 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
41 public class VoteIt implements Serializable {
44 @GeneratedValue(generator =
"hibernate-uuid")
45 @Column(name=
"IDENTIFIER")
50 @Column(name=
"VOTEIT_PATH")
54 @JoinColumn(name=
"CREATOR_FK")
55 private org.turro.contacts.Contact creator;
57 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
58 private java.util.Date dateCreation;
89 this.creator = creator;
97 this.dateCreation = dateCreation;
103 if(creator !=
null) {
111 if(creator !=
null) {
113 return c !=
null ? c.
getValue() :
null;
120 if(creator !=
null) {
122 return c !=
null ? c.
getValue() :
null;
static IElephantEntity getController(String path)
static final String CONNECTOR_EMAIL