19 package org.turro.contacts;
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.Id;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27 import org.turro.action.Contacts;
28 import org.turro.jpa.entity.IDaoEntity;
29 import org.turro.plugin.contacts.IContact;
30 import org.turro.util.CompareUtil;
37 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
41 @GeneratedValue(generator =
"hibernate-uuid")
42 @Column(name=
"IDENTIFIER")
46 @JoinColumn(name=
"CONVOCATION_FK")
50 @JoinColumn(name=
"CONTACT_FK")
53 private boolean attended;
68 this.convocation = convocation;
76 this.contact = contact;
84 this.attended = attended;
96 return contact ==
null || convocation ==
null;
102 if(this.contact !=
null && contact !=
null) {
103 return CompareUtil.compare(this.contact.
getId(), contact.
getId()) == 0;