1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.bo.reference.impl;
17
18 import javax.persistence.AttributeOverride;
19 import javax.persistence.AttributeOverrides;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.Table;
23
24 import org.kuali.rice.kim.bo.reference.CitizenshipStatus;
25 import org.kuali.rice.kim.bo.reference.dto.CitizenshipStatusInfo;
26
27
28
29
30 @Entity
31 @Table(name="KRIM_CTZNSHP_STAT_T")
32 @AttributeOverrides({
33 @AttributeOverride(name="code",column=@Column(name="CTZNSHP_STAT_CD")),
34 @AttributeOverride(name="name",column=@Column(name="NM"))
35 })
36 public class CitizenshipStatusImpl extends KimCodeBase implements CitizenshipStatus {
37
38 private static final long serialVersionUID = 1L;
39
40
41
42
43 public String getCitizenshipStatusCode() {
44 return getCode();
45 }
46
47
48
49
50 public String getCitizenshipStatusName() {
51 return getName();
52 }
53
54
55
56
57 public void setCitizenshipStatusCode(String citizenshipStatusCode) {
58 setCode(citizenshipStatusCode);
59 }
60
61
62
63
64 public void setCitizenshipStatusName(String citizenshipStatusName) {
65 setName(citizenshipStatusName);
66 }
67
68 public CitizenshipStatusInfo toInfo() {
69 CitizenshipStatusInfo info = new CitizenshipStatusInfo();
70 info.setCode(code);
71 info.setName(name);
72 info.setDisplaySortCode(displaySortCode);
73 info.setActive(active);
74 return info;
75 }
76
77 }