BrightSide Workbench Full Report + Source Code
TagIt.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.contacts;
19 
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;
31 
36 @Entity
37 @Table(indexes={
38  @Index(name="NameIndex", columnList="TAGIT_NAME"),
39  @Index(name="PathIndex", columnList="TAGIT_PATH,TAGIT_NAME")
40 })
41 @org.hibernate.annotations.GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
42 public class TagIt implements Serializable {
43 
44  @Id
45  @GeneratedValue(generator = "hibernate-uuid")
46  @Column(name="IDENTIFIER")
47  private String id;
48 
49  @Column(name="TAGIT_NAME")
50  private String name;
51 
52  @Column(name="TAGIT_PATH")
53  private String path;
54 
55  @ManyToOne
56  @JoinColumn(name="CREATOR_FK")
57  private org.turro.contacts.Contact creator;
58 
59  @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
60  private java.util.Date dateCreation;
61 
62  public Contact getCreator() {
63  return creator;
64  }
65 
66  public void setCreator(Contact creator) {
67  this.creator = creator;
68  }
69 
70  public Date getDateCreation() {
71  return dateCreation;
72  }
73 
74  public void setDateCreation(Date dateCreation) {
75  this.dateCreation = dateCreation;
76  }
77 
78  public String getId() {
79  return id;
80  }
81 
82  public void setId(String id) {
83  this.id = id;
84  }
85 
86  public String getName() {
87  return name;
88  }
89 
90  public void setName(String name) {
91  this.name = name;
92  }
93 
94  public String getPath() {
95  return path;
96  }
97 
98  public void setPath(String path) {
99  this.path = path;
100  }
101 
102 }
void setPath(String path)
Definition: TagIt.java:98
void setId(String id)
Definition: TagIt.java:82
Contact getCreator()
Definition: TagIt.java:62
void setName(String name)
Definition: TagIt.java:90
void setCreator(Contact creator)
Definition: TagIt.java:66
void setDateCreation(Date dateCreation)
Definition: TagIt.java:74