Coverage Report - org.kuali.rice.kim.bo.entity.impl.KimEntityEmploymentInformationImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
KimEntityEmploymentInformationImpl
0%
0/50
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 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  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 38  
  */
 39  
 @Entity
 40  
 @Table(name = "KRIM_ENTITY_EMP_INFO_T")
 41  0
 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  0
         @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  
          * @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  
         /**
 152  
          * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
 153  
          */
 154  
         @SuppressWarnings("unchecked")
 155  
         @Override
 156  
         protected LinkedHashMap toStringMapper() {
 157  0
                 LinkedHashMap m = new LinkedHashMap();
 158  0
                 m.put( "entityEmploymentId", entityEmploymentId );
 159  0
                 m.put( "entityAffiliationId", entityAffiliationId );
 160  0
                 m.put( "employeeStatusCode", employeeStatusCode );
 161  0
                 m.put( "employeeTypeCode", employeeTypeCode );
 162  0
                 m.put( "employeeId", employeeId );
 163  0
                 m.put( "baseSalaryAmount", baseSalaryAmount );
 164  0
                 m.put( "primary", primary );
 165  0
                 return m;
 166  
         }
 167  
 
 168  
         public void setEntityEmploymentId(String entityEmploymentId) {
 169  0
                 this.entityEmploymentId = entityEmploymentId;
 170  0
         }
 171  
 
 172  
         public String getEntityId() {
 173  0
                 return this.entityId;
 174  
         }
 175  
 
 176  
         public void setEntityId(String entityId) {
 177  0
                 this.entityId = entityId;
 178  0
         }
 179  
 
 180  
         public EmploymentTypeImpl getEmploymentType() {
 181  0
                 return this.employmentType;
 182  
         }
 183  
 
 184  
         public void setEmploymentType(EmploymentTypeImpl employmentType) {
 185  0
                 this.employmentType = employmentType;
 186  0
         }
 187  
 
 188  
         public EmploymentStatusImpl getEmploymentStatus() {
 189  0
                 return this.employmentStatus;
 190  
         }
 191  
 
 192  
         public void setEmploymentStatus(EmploymentStatusImpl employmentStatus) {
 193  0
                 this.employmentStatus = employmentStatus;
 194  0
         }
 195  
 
 196  
         public String getPrimaryDepartmentCode() {
 197  0
                 return this.primaryDepartmentCode;
 198  
         }
 199  
 
 200  
         public void setPrimaryDepartmentCode(String primaryDepartmentCode) {
 201  0
                 this.primaryDepartmentCode = primaryDepartmentCode;
 202  0
         }
 203  
 
 204  
         public String getEmployeeId() {
 205  0
                 return this.employeeId;
 206  
         }
 207  
 
 208  
         public void setEmployeeId(String employeeId) {
 209  0
                 this.employeeId = employeeId;
 210  0
         }
 211  
 
 212  
         public String getEmploymentRecordId() {
 213  0
                 return this.employmentRecordId;
 214  
         }
 215  
 
 216  
         public void setEmploymentRecordId(String employmentRecordId) {
 217  0
                 this.employmentRecordId = employmentRecordId;
 218  0
         }
 219  
 
 220  
         public KimEntityAffiliationImpl getAffiliation() {
 221  0
                 return this.affiliation;
 222  
         }
 223  
 
 224  
         public void setAffiliation(KimEntityAffiliationImpl affiliation) {
 225  0
                 this.affiliation = affiliation;
 226  0
         }
 227  
 
 228  
 }