18 package org.turro.financials.entity;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.ManyToOne;
26 import org.turro.string.Strings;
27 import org.turro.action.Contacts;
28 import org.turro.jpa.entity.IDaoEntity;
29 import org.turro.plugin.contacts.IContact;
39 @GeneratedValue(strategy=GenerationType.IDENTITY)
40 @Column(name=
"IDENTIFIER")
43 @Column(name=
"PARTICIPANT_NAME", nullable =
false)
46 private String idContact;
53 private boolean sendDocuments, showDocuments, showBalance, signature;
60 this.contract = contract;
76 this.idContact = idContact;
81 return interventionType;
85 this.interventionType = interventionType;
101 this.sendDocuments = sendDocuments;
109 this.showBalance = showBalance;
113 return showDocuments;
117 this.showDocuments = showDocuments;
125 this.signature = signature;
137 return contract ==
null || Strings.isBlank(idContact) || interventionType ==
null;
142 private transient IContact _contact;
145 if(_contact ==
null) {
153 idContact = _contact !=
null ? _contact.
getId() :
null;
154 name = _contact !=
null ? _contact.
getName() :
null;
157 private void resetIContact() {
void setIContact(IContact contact)
void setName(String name)
boolean isSendDocuments()
boolean isShowDocuments()
void setContract(Contract contract)
void setInterventionType(ContractInterventionType interventionType)
void setIdContact(String idContact)
void setSendDocuments(boolean sendDocuments)
void setSignature(boolean signature)
void setShowDocuments(boolean showDocuments)
ContractInterventionType getInterventionType()
void setShowBalance(boolean showBalance)