1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.bo.ui;
17
18 import java.sql.Timestamp;
19
20 import javax.persistence.CascadeType;
21 import javax.persistence.Column;
22 import javax.persistence.Convert;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.Id;
26 import javax.persistence.JoinColumn;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.Table;
29 import javax.persistence.Transient;
30
31 import org.eclipse.persistence.annotations.JoinFetch;
32 import org.eclipse.persistence.annotations.JoinFetchType;
33 import org.kuali.rice.kim.impl.identity.address.EntityAddressTypeBo;
34 import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
35 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
36
37
38
39
40
41
42
43 @Entity
44 @Table(name = "KRIM_PND_ADDR_MT")
45 public class PersonDocumentAddress extends PersonDocumentBoDefaultBase {
46 private static final long serialVersionUID = 1L;
47
48 @PortableSequenceGenerator(name = "KRIM_ENTITY_ADDR_ID_S")
49 @GeneratedValue(generator = "KRIM_ENTITY_ADDR_ID_S")
50 @Id
51 @Column(name = "ENTITY_ADDR_ID")
52 protected String entityAddressId;
53
54 @Column(name = "ADDR_TYP_CD")
55 protected String addressTypeCode;
56
57
58 @Transient
59 protected String entityTypeCode;
60
61 @Column(name = "CITY")
62 protected String city;
63
64 @Column(name = "STATE_PVC_CD")
65 protected String stateProvinceCode;
66
67 @Column(name = "POSTAL_CD")
68 protected String postalCode;
69
70 @Column(name = "POSTAL_CNTRY_CD")
71 protected String countryCode;
72
73 @Column(name = "ATTN_LINE")
74 protected String attentionLine;
75
76 @Column(name = "ADDR_LINE_1")
77 protected String line1;
78
79 @Column(name = "ADDR_LINE_2")
80 protected String line2;
81
82 @Column(name = "ADDR_LINE_3")
83 protected String line3;
84
85 @Column(name = "ADDR_FMT")
86 protected String addressFormat;
87
88 @Column(name = "MOD_DT")
89 protected Timestamp modifiedDate;
90
91 @Column(name = "VALID_DT")
92 protected Timestamp validatedDate;
93
94 @Column(name = "VALID_IND")
95 @Convert(converter = BooleanYNConverter.class)
96 protected boolean validated;
97
98 @Column(name = "NOTE_MSG")
99 protected String noteMessage;
100
101 @JoinFetch(value= JoinFetchType.OUTER)
102 @ManyToOne(targetEntity = EntityAddressTypeBo.class, cascade = { CascadeType.REFRESH })
103 @JoinColumn(name = "ADDR_TYP_CD", referencedColumnName = "ADDR_TYP_CD", insertable = false, updatable = false)
104 private EntityAddressTypeBo addressType;
105
106
107
108
109
110 public PersonDocumentAddress() {
111 this.active = true;
112 }
113
114
115
116
117 public String getAddressTypeCode() {
118 return addressTypeCode;
119 }
120
121
122
123
124 public String getCity() {
125 return city;
126 }
127
128
129
130
131 public String getCountryCode() {
132 return countryCode;
133 }
134
135
136
137
138 public String getEntityAddressId() {
139 return entityAddressId;
140 }
141
142
143
144
145 public String getAttentionLine() {
146 return attentionLine;
147 }
148
149
150
151
152 public String getLine1() {
153 return line1;
154 }
155
156
157
158
159 public String getLine2() {
160 return line2;
161 }
162
163
164
165
166 public String getLine3() {
167 return line3;
168 }
169
170
171
172
173 public String getAddressFormat() {
174 return addressFormat;
175 }
176
177 public Timestamp getModifiedDate() {
178 return modifiedDate;
179 }
180
181 public Timestamp getValidatedDate() {
182 return validatedDate;
183 }
184
185 public boolean isValidated() {
186 return validated;
187 }
188
189 public String getNoteMessage() {
190 return noteMessage;
191 }
192
193
194
195
196
197
198 public String getPostalCode() {
199 return postalCode;
200 }
201
202
203
204
205 public String getStateProvinceCode() {
206 return stateProvinceCode;
207 }
208
209
210
211
212 public void setAddressTypeCode(String addressTypeCode) {
213 this.addressTypeCode = addressTypeCode;
214 }
215
216
217
218
219 public void setCity(String city) {
220 this.city = city;
221 }
222
223
224
225
226 public void setCountryCode(String countryCode) {
227 this.countryCode = countryCode;
228 }
229
230
231
232
233 public void setAttentionLine(String attentionLine) {
234 this.attentionLine = attentionLine;
235 }
236
237
238
239
240 public void setLine1(String line1) {
241 this.line1 = line1;
242 }
243
244
245
246
247 public void setLine2(String line2) {
248 this.line2 = line2;
249 }
250
251
252
253
254 public void setLine3(String line3) {
255 this.line3 = line3;
256 }
257
258
259
260
261 public void setAddressFormat(String addressFormat) {
262 this.addressFormat = addressFormat;
263 }
264
265 public void setModifiedDate(Timestamp modifiedDate) {
266 this.modifiedDate = modifiedDate;
267 }
268
269 public void setValidatedDate(Timestamp validatedDate) {
270 this.validatedDate = validatedDate;
271 }
272
273 public void setValidated(boolean validated) {
274 this.validated = validated;
275 }
276
277 public void setNoteMessage(String noteMessage) {
278 this.noteMessage = noteMessage;
279 }
280
281
282
283
284 public void setPostalCode(String postalCode) {
285 this.postalCode = postalCode;
286 }
287
288
289
290
291 public void setStateProvinceCode(String stateProvinceCode) {
292 this.stateProvinceCode = stateProvinceCode;
293 }
294
295
296
297
298 public String getEntityTypeCode() {
299 return entityTypeCode;
300 }
301
302 public void setEntityTypeCode(String entityTypeCode) {
303 this.entityTypeCode = entityTypeCode;
304 }
305
306 public void setEntityAddressId(String entityAddressId) {
307 this.entityAddressId = entityAddressId;
308 }
309
310 public EntityAddressTypeBo getAddressType() {
311 return this.addressType;
312 }
313
314 public void setAddressType(EntityAddressTypeBo addressType) {
315 this.addressType = addressType;
316 }
317 }