18 package org.turro.contacts;
20 import java.io.Serializable;
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.hibernate.annotations.ColumnDefault;
28 import org.turro.jpa.entity.IDaoEntity;
29 import org.turro.security.SecurityGroup;
30 import org.turro.security.SecurityGroups;
31 import org.zkoss.lang.Strings;
38 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
42 @GeneratedValue(generator =
"hibernate-uuid")
43 @Column(name=
"IDENTIFIER")
46 @Column(name=
"SYNDICATION_NAME")
49 @Column(name=
"IS_DYNAMIC")
50 @ColumnDefault(
"false")
51 private boolean dynamic;
54 @JoinColumn(name=
"CONTACT_FK")
55 private org.turro.contacts.Contact contact;
61 protected void setId(String
id) {
78 this.dynamic = dynamic;
85 public void setContact(org.turro.contacts.Contact contact) {
86 this.contact = contact;
104 return Strings.isEmpty(name);
static SecurityGroup get(String id)