View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kim.impl.identity.employment;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Convert;
20  import javax.persistence.MappedSuperclass;
21  import javax.persistence.Transient;
22  
23  import org.kuali.rice.core.api.util.type.KualiDecimal;
24  import org.kuali.rice.kim.api.identity.employment.EntityEmploymentContract;
25  import org.kuali.rice.krad.bo.DataObjectBase;
26  import org.kuali.rice.krad.data.jpa.converters.BooleanYNConverter;
27  import org.kuali.rice.krad.data.jpa.converters.KualiDecimalConverter;
28  
29  @MappedSuperclass
30  public abstract class EntityEmploymentBase extends DataObjectBase implements EntityEmploymentContract {
31      private static final long serialVersionUID = 1L;
32      
33      @Column(name = "ENTITY_ID")
34      private String entityId;
35      
36      @Column(name = "EMP_ID")
37      private String employeeId;
38      
39      @Column(name = "EMP_REC_ID")
40      private String employmentRecordId;
41      
42      @Column(name = "ENTITY_AFLTN_ID")
43      private String entityAffiliationId;
44      
45      @Column(name = "EMP_STAT_CD")
46      private String employeeStatusCode;
47      
48      @Column(name = "EMP_TYP_CD")
49      private String employeeTypeCode;
50      
51      @Column(name = "PRMRY_DEPT_CD")
52      private String primaryDepartmentCode;
53      
54      @Convert(converter = KualiDecimalConverter.class)
55      @Column(name = "BASE_SLRY_AMT")
56      private KualiDecimal baseSalaryAmount;
57      
58      @Convert(converter=BooleanYNConverter.class)
59      @Column(name = "PRMRY_IND")
60      private boolean primary;
61      
62      @Convert(converter=BooleanYNConverter.class)
63      @Column(name = "ACTV_IND")
64      private boolean active;
65  
66      @Override
67      public String getEntityId() {
68          return entityId;
69      }
70  
71      public void setEntityId(String entityId) {
72          this.entityId = entityId;
73      }
74  
75      @Override
76      public String getEmployeeId() {
77          return employeeId;
78      }
79  
80      public void setEmployeeId(String employeeId) {
81          this.employeeId = employeeId;
82      }
83  
84      @Override
85      public String getEmploymentRecordId() {
86          return employmentRecordId;
87      }
88  
89      public void setEmploymentRecordId(String employmentRecordId) {
90          this.employmentRecordId = employmentRecordId;
91      }
92  
93      public String getEntityAffiliationId() {
94          return entityAffiliationId;
95      }
96  
97      public void setEntityAffiliationId(String entityAffiliationId) {
98          this.entityAffiliationId = entityAffiliationId;
99      }
100 
101     public String getEmployeeStatusCode() {
102         return employeeStatusCode;
103     }
104 
105     public void setEmployeeStatusCode(String employeeStatusCode) {
106         this.employeeStatusCode = employeeStatusCode;
107     }
108 
109     public String getEmployeeTypeCode() {
110         return employeeTypeCode;
111     }
112 
113     public void setEmployeeTypeCode(String employeeTypeCode) {
114         this.employeeTypeCode = employeeTypeCode;
115     }
116 
117     @Override
118     public String getPrimaryDepartmentCode() {
119         return primaryDepartmentCode;
120     }
121 
122     public void setPrimaryDepartmentCode(String primaryDepartmentCode) {
123         this.primaryDepartmentCode = primaryDepartmentCode;
124     }
125 
126     @Override
127     public KualiDecimal getBaseSalaryAmount() {
128         return baseSalaryAmount;
129     }
130 
131     public void setBaseSalaryAmount(KualiDecimal baseSalaryAmount) {
132         this.baseSalaryAmount = baseSalaryAmount;
133     }
134 
135     public boolean getPrimary() {
136         return primary;
137     }
138 
139     @Override
140     public boolean isPrimary() {
141         return primary;
142     }
143 
144     public void setPrimary(boolean primary) {
145         this.primary = primary;
146     }
147 
148     public boolean getActive() {
149         return active;
150     }
151 
152     @Override
153     public boolean isActive() {
154         return active;
155     }
156 
157     public void setActive(boolean active) {
158         this.active = active;
159     }
160 
161 }