1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kcb.bo;
17
18
19 import javax.persistence.Column;
20 import javax.persistence.Entity;
21 import javax.persistence.Id;
22 import javax.persistence.Table;
23 import javax.persistence.Version;
24
25 import org.apache.commons.lang.builder.ToStringBuilder;
26
27
28
29
30
31
32
33 @Entity
34 @Table(name="KREN_RECIP_PREFS_T")
35 public class RecipientPreference {
36
37
38
39
40 public static final String RECIPIENT_FIELD = "recipientId";
41 public static final String PROPERTY_FIELD = "property";
42
43 @Id
44 @Column(name="RECIP_PREFS_ID")
45 private Long id;
46 @Column(name="RECIP_ID", nullable=false)
47 private String recipientId;
48 @Column(name="PROP", nullable=false)
49 private String property;
50 @Column(name="VAL", nullable=true)
51 private String value;
52
53
54
55
56 @Version
57 @Column(name="VER_NBR")
58 private Integer lockVerNbr;
59
60
61
62
63
64 public Long getId() {
65 return id;
66 }
67
68
69
70
71
72 public void setId(Long id) {
73 this.id = id;
74 }
75
76
77
78
79
80 public String getProperty() {
81 return property;
82 }
83
84
85
86
87
88 public void setProperty(String property) {
89 this.property = property;
90 }
91
92
93
94
95
96 public String getRecipientId() {
97 return recipientId;
98 }
99
100
101
102
103
104 public void setRecipientId(String recipientId) {
105 this.recipientId = recipientId;
106 }
107
108
109
110
111
112 public String getValue() {
113 return value;
114 }
115
116
117
118
119
120 public void setValue(String value) {
121 this.value = value;
122 }
123
124
125
126
127
128 public Integer getLockVerNbr() {
129 return lockVerNbr;
130 }
131
132
133
134
135
136 public void setLockVerNbr(Integer lockVerNbr) {
137 this.lockVerNbr = lockVerNbr;
138 }
139
140
141
142
143
144
145
146
147
148
149
150
151 @Override
152 public String toString() {
153 return new ToStringBuilder(this)
154 .append("id", id)
155 .append("recipientId", recipientId)
156 .append("property", property)
157 .append("value", value)
158 .append("lockVerNbr", lockVerNbr)
159 .toString();
160 }
161 }