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