1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.entity.impl; |
17 | |
|
18 | |
import org.kuali.rice.kim.bo.entity.KimEntityCitizenship; |
19 | |
import org.kuali.rice.kim.bo.reference.CitizenshipStatus; |
20 | |
import org.kuali.rice.kim.bo.reference.impl.CitizenshipStatusImpl; |
21 | |
|
22 | |
import javax.persistence.*; |
23 | |
import java.util.Date; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
@Entity |
29 | |
@Table(name = "KRIM_ENTITY_CTZNSHP_T") |
30 | 0 | public class KimEntityCitizenshipImpl extends KimInactivatableEntityDataBase implements KimEntityCitizenship { |
31 | |
|
32 | |
private static final long serialVersionUID = 1L; |
33 | |
|
34 | |
@Id |
35 | |
@Column(name = "ENTITY_CTZNSHP_ID") |
36 | |
protected String entityCitizenshipId; |
37 | |
|
38 | |
@Column(name = "ENTITY_ID") |
39 | |
protected String entityId; |
40 | |
|
41 | |
@Column(name = "POSTAL_CNTRY_CD") |
42 | |
protected String countryCode; |
43 | |
|
44 | |
@Column(name = "CTZNSHP_STAT_CD") |
45 | |
protected String citizenshipStatusCode; |
46 | |
|
47 | |
@Column(name = "strt_dt") |
48 | |
protected Date startDate; |
49 | |
|
50 | |
@Column(name = "end_dt") |
51 | |
protected Date endDate; |
52 | |
|
53 | |
@ManyToOne(targetEntity=CitizenshipStatusImpl.class, fetch=FetchType.EAGER, cascade={}) |
54 | |
@JoinColumn(name = "CTZNSHP_STAT_CD", insertable = false, updatable = false) |
55 | |
protected CitizenshipStatus citizenshipType; |
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
public String getCitizenshipStatusCode() { |
64 | 0 | return citizenshipStatusCode; |
65 | |
} |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
public Date getEndDate() { |
71 | 0 | return endDate; |
72 | |
} |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
public String getEntityCitizenshipId() { |
78 | 0 | return entityCitizenshipId; |
79 | |
} |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
public Date getStartDate() { |
85 | 0 | return startDate; |
86 | |
} |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
public void setCitizenshipStatusCode(String citizenshipStatusCode) { |
92 | 0 | this.citizenshipStatusCode = citizenshipStatusCode; |
93 | 0 | } |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
public void setEndDate(Date endDate) { |
99 | 0 | this.endDate = endDate; |
100 | 0 | } |
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
public void setStartDate(Date startDate) { |
106 | 0 | this.startDate = startDate; |
107 | 0 | } |
108 | |
|
109 | |
public String getEntityId() { |
110 | 0 | return this.entityId; |
111 | |
} |
112 | |
|
113 | |
public void setEntityId(String entityId) { |
114 | 0 | this.entityId = entityId; |
115 | 0 | } |
116 | |
|
117 | |
public String getCountryCode() { |
118 | 0 | return this.countryCode; |
119 | |
} |
120 | |
|
121 | |
public void setCountryCode(String countryCode) { |
122 | 0 | this.countryCode = countryCode; |
123 | 0 | } |
124 | |
|
125 | |
public CitizenshipStatus getCitizenshipType() { |
126 | 0 | return this.citizenshipType; |
127 | |
} |
128 | |
|
129 | |
public void setCitizenshipType(CitizenshipStatus citizenshipType) { |
130 | 0 | this.citizenshipType = citizenshipType; |
131 | 0 | } |
132 | |
|
133 | |
public void setEntityCitizenshipId(String entityCitizenshipId) { |
134 | 0 | this.entityCitizenshipId = entityCitizenshipId; |
135 | 0 | } |
136 | |
|
137 | |
} |