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 org.hibernate.annotations.GenericGenerator;
19 import org.hibernate.annotations.Parameter;
20
21 import javax.persistence.*;
22 import java.sql.Date;
23
24
25
26
27
28
29
30 @IdClass(PersonDocumentCitizenshipId.class)
31 @Entity
32 @Table(name = "KRIM_PND_CTZNSHP_MT")
33 public class PersonDocumentCitizenship extends KimDocumentBoActivatableEditableBase {
34 @Id
35 @GeneratedValue(generator="KRIM_ENTITY_CTZNSHP_ID_S")
36 @GenericGenerator(name="KRIM_ENTITY_CTZNSHP_ID_S",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
37 @Parameter(name="sequence_name",value="KRIM_ENTITY_CTZNSHP_ID_S"),
38 @Parameter(name="value_column",value="id")
39 })
40 @Column(name = "ENTITY_CTZNSHP_ID")
41 protected String entityCitizenshipId;
42
43 @Column(name = "ENTITY_ID")
44 protected String entityId;
45
46 @Column(name = "POSTAL_CNTRY_CD")
47 protected String countryCode;
48
49 @Column(name = "CTZNSHP_STAT_CD")
50 protected String citizenshipStatusCode;
51
52 @Column(name = "strt_dt")
53 protected Date startDate;
54
55 @Column(name = "end_dt")
56 protected Date endDate;
57
58
59
60
61
62 public String getCitizenshipStatusCode() {
63 return citizenshipStatusCode;
64 }
65
66
67
68
69 public Date getEndDate() {
70 return endDate;
71 }
72
73
74
75
76 public String getEntityCitizenshipId() {
77 return entityCitizenshipId;
78 }
79
80
81
82
83 public Date getStartDate() {
84 return startDate;
85 }
86
87
88
89
90 public void setCitizenshipStatusCode(String citizenshipStatusCode) {
91 this.citizenshipStatusCode = citizenshipStatusCode;
92 }
93
94
95
96
97 public void setEndDate(Date endDate) {
98 this.endDate = endDate;
99 }
100
101
102
103
104 public void setStartDate(Date startDate) {
105 this.startDate = startDate;
106 }
107
108
109 public String getEntityId() {
110 return this.entityId;
111 }
112
113 public void setEntityId(String entityId) {
114 this.entityId = entityId;
115 }
116
117 public String getCountryCode() {
118 return this.countryCode;
119 }
120
121 public void setCountryCode(String countryCode) {
122 this.countryCode = countryCode;
123 }
124
125 public void setEntityCitizenshipId(String entityCitizenshipId) {
126 this.entityCitizenshipId = entityCitizenshipId;
127 }
128 }