18 package org.turro.dossier.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.JoinColumn;
27 import javax.persistence.Lob;
28 import javax.persistence.ManyToOne;
29 import javax.persistence.Temporal;
30 import org.turro.action.Contacts;
31 import org.turro.dossier.issue.parser.CommentParser;
32 import org.turro.elephant.impl.util.StringParser;
33 import org.turro.plugin.contacts.IContact;
43 @GeneratedValue(strategy=GenerationType.IDENTITY)
44 @Column(name=
"IDENTIFIER")
47 private String idContact, participantName;
51 private String comment;
53 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
54 private java.util.Date modification;
56 private double expenses, hours, price;
58 private boolean processed =
false;
61 @JoinColumn(name =
"ISSUE_FK")
69 this.comment = comment;
77 this.expenses = expenses;
101 this.idContact = idContact;
118 this.modification = modification;
122 return participantName;
126 this.participantName = participantName;
142 this.processed = processed;
156 return expenses != 0;
170 if(_parser ==
null) {
178 private transient IContact _contact;
181 if(_contact ==
null) {
189 idContact = _contact !=
null ? _contact.
getId() :
null;
190 participantName = _contact !=
null ? _contact.
getName() :
null;
193 private void resetIContact() {
static String toHTML(String value)