19 package org.turro.dossier.entity;
21 import java.util.Date;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.JoinColumn;
28 import javax.persistence.ManyToOne;
29 import javax.persistence.Temporal;
30 import org.turro.action.Contacts;
31 import org.turro.plugin.contacts.IContact;
41 @GeneratedValue(strategy=GenerationType.IDENTITY)
42 @Column(name=
"IDENTIFIER")
45 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
46 private java.util.Date creation;
48 private String idContact;
50 private String contactName, contactEmail;
53 @JoinColumn(name=
"CATEGORY_FK")
69 this.creation = creation;
77 this.idContact = idContact;
86 this.contactName = contactName;
94 this.contactEmail = contactEmail;
102 this.category = category;
113 private transient IContact _contact;
116 if(_contact ==
null) {
124 idContact = _contact !=
null ? _contact.
getId() :
null;
127 private void resetIContact() {
void setContactEmail(String contactEmail)
void setContactName(String contactName)
void setIContact(IContact contact)
void setCategory(Category category)
void setCreation(Date creation)
void setIdContact(String idContact)