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 discriminator;
52 private boolean coordinator, beneficiary, offerer, research, funding, support, consortium;
55 @JoinColumn(name=
"DOSSIER_FK")
63 this.dossier = dossier;
79 this.creation = creation;
87 this.idContact = idContact;
96 this.discriminator = discriminator;
104 this.coordinator = coordinator;
112 this.beneficiary = beneficiary;
120 this.offerer = offerer;
128 this.research = research;
136 this.funding = funding;
144 this.support = support;
152 this.consortium = consortium;
163 private transient IContact _contact;
166 if(_contact ==
null) {
174 idContact = _contact !=
null ? _contact.
getId() :
null;
177 private void resetIContact() {
void setFunding(boolean funding)
void setDossier(Dossier dossier)
void setResearch(boolean research)
void setBeneficiary(boolean beneficiary)
void setSupport(boolean support)
void setCreation(Date creation)
void setCoordinator(boolean coordinator)
String getDiscriminator()
void setConsortium(boolean consortium)
void setOfferer(boolean offerer)
void setDiscriminator(String discriminator)
void setIdContact(String idContact)
void setIContact(IContact contact)