18 package org.turro.contacts;
20 import java.io.Serializable;
21 import java.util.Date;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.Id;
26 import javax.persistence.Index;
27 import javax.persistence.JoinColumn;
28 import javax.persistence.ManyToOne;
29 import javax.persistence.Table;
30 import javax.persistence.Temporal;
38 @Index(name=
"NameIndex", columnList=
"TAGIT_NAME"),
39 @Index(name=
"PathIndex", columnList=
"TAGIT_PATH,TAGIT_NAME")
41 @org.hibernate.annotations.GenericGenerator(name =
"hibernate-uuid", strategy =
"uuid")
42 public class TagIt implements Serializable {
45 @GeneratedValue(generator =
"hibernate-uuid")
46 @Column(name=
"IDENTIFIER")
49 @Column(name=
"TAGIT_NAME")
52 @Column(name=
"TAGIT_PATH")
56 @JoinColumn(name=
"CREATOR_FK")
57 private org.turro.contacts.Contact creator;
59 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
60 private java.util.Date dateCreation;
67 this.creator = creator;
75 this.dateCreation = dateCreation;