Coverage Report - org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo
 
Classes in this File Line Coverage Branch Coverage Complexity
EntityEmploymentStatusBo
0%
0/11
0%
0/4
0
 
 1  
 package org.kuali.rice.kim.impl.identity.employment
 2  
 
 3  
 import javax.persistence.Column
 4  
 import javax.persistence.Entity
 5  
 import javax.persistence.Id
 6  
 import javax.persistence.Table
 7  
 import org.kuali.rice.kim.api.identity.Type
 8  
 import org.kuali.rice.kim.api.identity.TypeContract
 9  
 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase
 10  
 
 11  
 @Entity
 12  
 @Table(name="KRIM_EMP_STAT_T")
 13  
 public class EntityEmploymentStatusBo extends PersistableBusinessObjectBase implements TypeContract {
 14  
     @Id
 15  
     @Column(name="EMP_STAT_CD")
 16  
     String code;
 17  
     @Column(name="NM")
 18  
     String name;
 19  
     @org.hibernate.annotations.Type(type="yes_no")
 20  
     @Column(name="ACTV_IND")
 21  
     boolean active;
 22  
     @Column(name="DISPLAY_SORT_CD")
 23  
     String sortCode;
 24  
 
 25  
 
 26  
     /**
 27  
    * Converts a mutable EmploymentStatusBo to an immutable EmploymentStatus representation.
 28  
    * @param bo
 29  
    * @return an immutable EmploymentStatus
 30  
    */
 31  
   static Type to(EntityEmploymentStatusBo bo) {
 32  0
     if (bo == null) { return null }
 33  0
     return Type.Builder.create(bo).build()
 34  
   }
 35  
 
 36  
   /**
 37  
    * Creates a EmploymentStatus business object from an immutable representation of a EmploymentStatus.
 38  
    * @param an immutable EmploymentStatus
 39  
    * @return a EmploymentStatusBo
 40  
    */
 41  
   static EntityEmploymentStatusBo from(Type immutable) {
 42  0
     if (immutable == null) {return null}
 43  
 
 44  0
     EntityEmploymentStatusBo bo = new EntityEmploymentStatusBo()
 45  0
     bo.code = immutable.code
 46  0
     bo.name = immutable.name
 47  0
     bo.sortCode = immutable.sortCode
 48  0
     bo.active = immutable.active
 49  0
     bo.versionNumber = immutable.versionNumber
 50  0
     bo.objectId = immutable.objectId
 51  
 
 52  0
     return bo;
 53  
   }
 54  
 }