19 package org.turro.financials.entity;
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.GenerationType;
27 import javax.persistence.Id;
28 import javax.persistence.OneToOne;
29 import javax.persistence.Temporal;
30 import javax.persistence.TemporalType;
31 import org.turro.string.Strings;
32 import org.turro.action.Contacts;
33 import org.turro.plugin.contacts.IContact;
40 public class FollowUp implements Serializable {
43 @GeneratedValue(strategy=GenerationType.IDENTITY)
44 @Column(name=
"IDENTIFIER")
47 private String prepareId, deliverId;
52 @Temporal(value = TemporalType.TIMESTAMP)
53 private Date preparedDate, deliveredDate;
55 private String receiver, receiverId;
70 this.document = document;
78 this.preparedDate = preparedDate;
86 this.deliveredDate = deliveredDate;
94 this.receiver = receiver;
102 this.receiverId = receiverId;
108 prepareId = contact.
getId();
112 if(!Strings.isBlank(prepareId)) {
119 deliverId = contact.
getId();
123 if(!Strings.isBlank(deliverId)) {
void setDeliveredDate(Date deliveredDate)
void setIPrepare(IContact contact)
void setIDeliver(IContact contact)
void setPreparedDate(Date preparedDate)
void setReceiverId(String receiverId)
void setReceiver(String receiver)
void setDocument(Document document)