18 package org.turro.contacts;
20 import java.util.Date;
21 import javax.persistence.*;
22 import org.turro.action.Contacts;
23 import org.turro.action.IAcceptance;
24 import org.turro.entities.Entities;
25 import org.turro.entities.IElephantEntity;
26 import org.turro.i18n.I_;
27 import org.turro.plugin.contacts.IContact;
34 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
38 @GeneratedValue(generator =
"hibernate-uuid")
39 @Column(name=
"IDENTIFIER")
42 @Column(name=
"ACCEPTANCE_PATH")
46 @JoinColumn(name=
"PETITIONER_FK")
47 private org.turro.contacts.Contact petitioner;
49 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
50 private java.util.Date dateRequest;
52 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
53 private java.util.Date dateAcceptance;
57 private String acceptanceComment;
60 @JoinColumn(name=
"CONTACT_FK")
61 private org.turro.contacts.Contact contact;
65 return acceptanceComment;
70 this.acceptanceComment = acceptanceComment;
78 this.contact = contact;
83 return dateAcceptance;
88 this.dateAcceptance = dateAcceptance;
98 this.dateRequest = dateRequest;
126 this.petitioner = petitioner;
138 if(icontact !=
null && icontact.
isValid()) {
150 if(icontact !=
null && icontact.
isValid()) {
156 if(dateAcceptance !=
null) {
159 return I_.
format(
"%s requires acceptation from %s",
static IElephantEntity getController(String path)
static String format(String msg, Object... arguments)
static String get(String msg)