1 package de.tivsource.page.entity.message;
2
3 import java.util.Date;
4
5 import javax.persistence.Basic;
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.Id;
9 import javax.persistence.Lob;
10 import javax.persistence.Temporal;
11
12 import org.hibernate.envers.Audited;
13 import org.hibernate.search.annotations.DocumentId;
14
15
16
17
18
19
20 @Audited
21 @Entity
22 public class Message {
23
24
25
26
27
28
29 @Id
30 @DocumentId
31 @Column(name="uuid", unique=true, length=42)
32 private String uuid;
33
34
35
36
37 @Basic
38 @org.hibernate.annotations.Type(type = "yes_no")
39 private Boolean gender;
40
41
42
43
44 private String firstname;
45
46
47
48
49 private String lastname;
50
51
52
53
54 private String mail;
55
56 private String telephone;
57
58 private String fax;
59
60 @Lob
61 private String content;
62
63 @Basic
64 @org.hibernate.annotations.Type(type = "yes_no")
65 private Boolean privacy;
66
67 @Temporal(javax.persistence.TemporalType.TIMESTAMP)
68 private Date created;
69
70 private String createdAddress;
71
72 public String getUuid() {
73 return uuid;
74 }
75
76 public void setUuid(String uuid) {
77 this.uuid = uuid;
78 }
79
80 public Boolean getGender() {
81 return gender;
82 }
83
84 public void setGender(Boolean gender) {
85 this.gender = gender;
86 }
87
88 public String getFirstname() {
89 return firstname;
90 }
91
92 public void setFirstname(String firstname) {
93 this.firstname = firstname;
94 }
95
96 public String getLastname() {
97 return lastname;
98 }
99
100 public void setLastname(String lastname) {
101 this.lastname = lastname;
102 }
103
104 public String getMail() {
105 return mail;
106 }
107
108 public void setMail(String mail) {
109 this.mail = mail;
110 }
111
112 public String getTelephone() {
113 return telephone;
114 }
115
116 public void setTelephone(String telephone) {
117 this.telephone = telephone;
118 }
119
120 public String getFax() {
121 return fax;
122 }
123
124 public void setFax(String fax) {
125 this.fax = fax;
126 }
127
128 public String getContent() {
129 return content;
130 }
131
132 public void setContent(String content) {
133 this.content = content;
134 }
135
136 public Boolean getPrivacy() {
137 return privacy;
138 }
139
140 public void setPrivacy(Boolean privacy) {
141 this.privacy = privacy;
142 }
143
144 public Date getCreated() {
145 return created;
146 }
147
148 public void setCreated(Date created) {
149 this.created = created;
150 }
151
152 public String getCreatedAddress() {
153 return createdAddress;
154 }
155
156 public void setCreatedAddress(String createdAddress) {
157 this.createdAddress = createdAddress;
158 }
159
160 }