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 java.util.LinkedHashMap;
19
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.FetchType;
23 import javax.persistence.Id;
24 import javax.persistence.JoinColumn;
25 import javax.persistence.ManyToOne;
26 import javax.persistence.Table;
27
28 import org.hibernate.annotations.Type;
29 import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation;
30 import org.kuali.rice.kim.bo.reference.EmploymentStatus;
31 import org.kuali.rice.kim.bo.reference.EmploymentType;
32 import org.kuali.rice.kim.bo.reference.impl.EmploymentStatusImpl;
33 import org.kuali.rice.kim.bo.reference.impl.EmploymentTypeImpl;
34 import org.kuali.rice.kns.util.KualiDecimal;
35
36
37
38
39 @Entity
40 @Table(name = "KRIM_ENTITY_EMP_INFO_T")
41 public class KimEntityEmploymentInformationImpl extends KimInactivatableEntityDataBase implements KimEntityEmploymentInformation {
42
43 private static final long serialVersionUID = 1L;
44
45 @Id
46 @Column(name = "ENTITY_EMP_ID")
47 protected String entityEmploymentId;
48
49 @Column(name = "ENTITY_ID")
50 protected String entityId;
51
52 @Column(name = "EMP_ID")
53 protected String employeeId;
54
55 @Column(name = "EMP_REC_ID")
56 protected String employmentRecordId;
57
58 @Column(name = "ENTITY_AFLTN_ID")
59 protected String entityAffiliationId;
60
61 @Column(name = "EMP_STAT_CD")
62 protected String employeeStatusCode;
63
64 @Column(name = "EMP_TYP_CD")
65 protected String employeeTypeCode;
66
67 @Column(name = "PRMRY_DEPT_CD")
68 protected String primaryDepartmentCode;
69
70 @Column(name = "BASE_SLRY_AMT")
71 protected KualiDecimal baseSalaryAmount;
72
73 @Type(type="yes_no")
74 @Column(name="PRMRY_IND")
75 protected boolean primary;
76
77 @ManyToOne(targetEntity=EmploymentTypeImpl.class, fetch = FetchType.EAGER, cascade = {})
78 @JoinColumn(name = "EMP_TYP_CD", insertable = false, updatable = false)
79 protected EmploymentTypeImpl employmentType;
80
81 @ManyToOne(targetEntity=EmploymentStatusImpl.class, fetch = FetchType.EAGER, cascade = {})
82 @JoinColumn(name = "EMP_STAT_CD", insertable = false, updatable = false)
83 protected EmploymentStatusImpl employmentStatus;
84
85 @ManyToOne(targetEntity=KimEntityAffiliationImpl.class, fetch = FetchType.EAGER, cascade = {})
86 @JoinColumn(name = "ENTITY_AFLTN_ID", insertable = false, updatable = false)
87 protected KimEntityAffiliationImpl affiliation = new KimEntityAffiliationImpl();
88
89
90
91
92 public KualiDecimal getBaseSalaryAmount() {
93 return baseSalaryAmount;
94 }
95
96
97
98
99 public String getEmployeeStatusCode() {
100 return employeeStatusCode;
101 }
102
103
104
105
106 public String getEmployeeTypeCode() {
107 return employeeTypeCode;
108 }
109
110
111
112
113 public String getEntityAffiliationId() {
114 return entityAffiliationId;
115 }
116
117
118
119
120 public String getEntityEmploymentId() {
121 return entityEmploymentId;
122 }
123
124
125
126
127 public boolean isPrimary() {
128 return primary;
129 }
130
131 public void setEntityAffiliationId(String entityAffiliationId) {
132 this.entityAffiliationId = entityAffiliationId;
133 }
134
135 public void setBaseSalaryAmount(KualiDecimal baseSalaryAmount) {
136 this.baseSalaryAmount = baseSalaryAmount;
137 }
138
139 public void setEmployeeStatusCode(String employeeStatusCode) {
140 this.employeeStatusCode = employeeStatusCode;
141 }
142
143 public void setEmployeeTypeCode(String employeeTypeCode) {
144 this.employeeTypeCode = employeeTypeCode;
145 }
146
147 public void setPrimary(boolean primary) {
148 this.primary = primary;
149 }
150
151
152
153
154 @SuppressWarnings("unchecked")
155 @Override
156 protected LinkedHashMap toStringMapper() {
157 LinkedHashMap m = new LinkedHashMap();
158 m.put( "entityEmploymentId", entityEmploymentId );
159 m.put( "entityAffiliationId", entityAffiliationId );
160 m.put( "employeeStatusCode", employeeStatusCode );
161 m.put( "employeeTypeCode", employeeTypeCode );
162 m.put( "employeeId", employeeId );
163 m.put( "baseSalaryAmount", baseSalaryAmount );
164 m.put( "primary", primary );
165 return m;
166 }
167
168 public void setEntityEmploymentId(String entityEmploymentId) {
169 this.entityEmploymentId = entityEmploymentId;
170 }
171
172 public String getEntityId() {
173 return this.entityId;
174 }
175
176 public void setEntityId(String entityId) {
177 this.entityId = entityId;
178 }
179
180 public EmploymentTypeImpl getEmploymentType() {
181 return this.employmentType;
182 }
183
184 public void setEmploymentType(EmploymentTypeImpl employmentType) {
185 this.employmentType = employmentType;
186 }
187
188 public EmploymentStatusImpl getEmploymentStatus() {
189 return this.employmentStatus;
190 }
191
192 public void setEmploymentStatus(EmploymentStatusImpl employmentStatus) {
193 this.employmentStatus = employmentStatus;
194 }
195
196 public String getPrimaryDepartmentCode() {
197 return this.primaryDepartmentCode;
198 }
199
200 public void setPrimaryDepartmentCode(String primaryDepartmentCode) {
201 this.primaryDepartmentCode = primaryDepartmentCode;
202 }
203
204 public String getEmployeeId() {
205 return this.employeeId;
206 }
207
208 public void setEmployeeId(String employeeId) {
209 this.employeeId = employeeId;
210 }
211
212 public String getEmploymentRecordId() {
213 return this.employmentRecordId;
214 }
215
216 public void setEmploymentRecordId(String employmentRecordId) {
217 this.employmentRecordId = employmentRecordId;
218 }
219
220 public KimEntityAffiliationImpl getAffiliation() {
221 return this.affiliation;
222 }
223
224 public void setAffiliation(KimEntityAffiliationImpl affiliation) {
225 this.affiliation = affiliation;
226 }
227
228 }