18 package org.turro.dossier.entity;
20 import java.util.Objects;
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.ManyToOne;
28 import org.turro.action.Contacts;
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;
48 @Column(name=
"PARTICIPANT_ROLE")
51 private boolean pendingRevision;
54 @JoinColumn(name=
"ISSUE_FK")
70 this.idContact = idContact;
99 return pendingRevision;
103 this.pendingRevision = pendingRevision;
114 private transient IContact _contact;
117 if(_contact ==
null) {
125 idContact = _contact !=
null ? _contact.
getId() :
null;
126 name = _contact !=
null ? _contact.
getName() :
null;
129 private void resetIContact() {
138 hash = 97 * hash + Objects.hashCode(this.
id);
150 if (getClass() != obj.getClass()) {
154 return Objects.
equals(this.
id, other.id);
boolean isPendingRevision()
void setIssue(Issue issue)
boolean equals(Object obj)
void setRole(IssueParticipantRole role)
void setIdContact(String idContact)
void setPendingRevision(boolean pendingRevision)
void setName(String name)
IssueParticipantRole getRole()
void setIContact(IContact contact)