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