1
2
3
4 package de.tivsource.page.entity.property;
5
6 import java.util.Date;
7
8 import javax.persistence.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.Id;
11 import javax.persistence.Temporal;
12
13 import org.hibernate.envers.Audited;
14 import org.hibernate.search.annotations.DocumentId;
15 import org.hibernate.search.annotations.Indexed;
16
17
18
19
20
21 @Audited
22 @Indexed
23 @Entity
24 public class Property {
25
26 @Id
27 @DocumentId
28 @Column(name="property_key", unique=true, length=128)
29 private String key;
30
31 @Column(name="property_value")
32 private String value;
33
34 @Temporal(javax.persistence.TemporalType.TIMESTAMP)
35 private Date created;
36
37 @Temporal(javax.persistence.TemporalType.TIMESTAMP)
38 private Date modified;
39
40 private String modifiedBy;
41
42 private String modifiedAddress;
43
44 public String getKey() {
45 return key;
46 }
47
48 public void setKey(String key) {
49 this.key = key;
50 }
51
52 public String getValue() {
53 return value;
54 }
55
56 public void setValue(String value) {
57 this.value = value;
58 }
59
60
61
62
63 public Date getCreated() {
64 return created;
65 }
66
67
68
69
70 public void setCreated(Date created) {
71 this.created = created;
72 }
73
74 public Date getModified() {
75 return modified;
76 }
77
78 public void setModified(Date modified) {
79 this.modified = modified;
80 }
81
82 public String getModifiedBy() {
83 return modifiedBy;
84 }
85
86 public void setModifiedBy(String modifiedBy) {
87 this.modifiedBy = modifiedBy;
88 }
89
90 public String getModifiedAddress() {
91 return modifiedAddress;
92 }
93
94 public void setModifiedAddress(String modifiedAddress) {
95 this.modifiedAddress = modifiedAddress;
96 }
97
98 }