18 package org.turro.publication.entity;
20 import java.util.Date;
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import javax.persistence.ManyToOne;
27 import javax.persistence.Temporal;
28 import org.turro.action.Contacts;
29 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;
58 this.creation = creation;
74 this.idContact = idContact;
79 return publicationCategory;
83 this.publicationCategory = publicationCategory;
91 if(_contact ==
null) {
99 idContact = _contact !=
null ? _contact.
getId() :
null;
102 private void resetIContact() {
PublicationCategory getPublicationCategory()
void setPublicationCategory(PublicationCategory publicationCategory)
void setCreation(Date creation)
void setIdContact(String idContact)
void setContact(IContact contact)