Coverage Report - org.kuali.rice.kim.bo.entity.impl.KimEntityAffiliationImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
KimEntityAffiliationImpl
0%
0/20
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.kuali.rice.kim.bo.entity.KimEntityAffiliation;
 29  
 import org.kuali.rice.kim.bo.reference.AffiliationType;
 30  
 import org.kuali.rice.kim.bo.reference.impl.AffiliationTypeImpl;
 31  
 
 32  
 /**
 33  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 34  
  */
 35  
 @Entity
 36  
 @Table(name = "KRIM_ENTITY_AFLTN_T")
 37  0
 public class KimEntityAffiliationImpl extends KimDefaultableEntityDataBase implements KimEntityAffiliation {
 38  
 
 39  
         private static final long serialVersionUID = 1L;
 40  
 
 41  
         @Id
 42  
         @Column(name = "ENTITY_AFLTN_ID")
 43  
         protected String entityAffiliationId;
 44  
 
 45  
         @Column(name = "ENTITY_ID")
 46  
         protected String entityId;
 47  
 
 48  
         @Column(name = "AFLTN_TYP_CD")
 49  
         protected String affiliationTypeCode;
 50  
 
 51  
         @Column(name = "CAMPUS_CD")
 52  
         protected String campusCode;
 53  
 
 54  
         @ManyToOne(targetEntity=AffiliationTypeImpl.class, fetch = FetchType.EAGER, cascade = {})
 55  
         @JoinColumn(name = "AFLTN_TYP_CD", insertable = false, updatable = false)
 56  
         protected AffiliationType affiliationType;
 57  
 
 58  
         // Waiting until we pull in from KFS
 59  
         // protected Campus campus;
 60  
 
 61  
         /**
 62  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getAffiliationTypeCode()
 63  
          */
 64  
         public String getAffiliationTypeCode() {
 65  0
                 return affiliationTypeCode;
 66  
         }
 67  
 
 68  
         /**
 69  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getCampusCode()
 70  
          */
 71  
         public String getCampusCode() {
 72  0
                 return campusCode;
 73  
         }
 74  
 
 75  
         /**
 76  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getEntityAffiliationId()
 77  
          */
 78  
         public String getEntityAffiliationId() {
 79  0
                 return entityAffiliationId;
 80  
         }
 81  
 
 82  
         /**
 83  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#setAffiliationTypeCode(java.lang.String)
 84  
          */
 85  
         public void setAffiliationTypeCode(String affiliationTypeCode) {
 86  0
                 this.affiliationTypeCode = affiliationTypeCode;
 87  0
         }
 88  
 
 89  
         /**
 90  
          * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#setCampusCode(java.lang.String)
 91  
          */
 92  
         public void setCampusCode(String campusCode) {
 93  0
                 this.campusCode = campusCode;
 94  0
         }
 95  
 
 96  
         /**
 97  
          * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
 98  
          */
 99  
         @Override
 100  
         protected LinkedHashMap toStringMapper() {
 101  0
                 LinkedHashMap m = new LinkedHashMap();
 102  0
                 m.put("entityAffiliationId", entityAffiliationId);
 103  0
                 m.put("affiliationTypeCode", affiliationTypeCode);
 104  0
                 return m;
 105  
         }
 106  
 
 107  
         public String getEntityId() {
 108  0
                 return this.entityId;
 109  
         }
 110  
 
 111  
         public void setEntityId(String entityId) {
 112  0
                 this.entityId = entityId;
 113  0
         }
 114  
 
 115  
         public AffiliationType getAffiliationType() {
 116  0
                 return this.affiliationType;
 117  
         }
 118  
 
 119  
         public void setAffiliationType(AffiliationType affiliationType) {
 120  0
                 this.affiliationType = affiliationType;
 121  0
         }
 122  
 
 123  
         public void setEntityAffiliationId(String entityAffiliationId) {
 124  0
                 this.entityAffiliationId = entityAffiliationId;
 125  0
         }
 126  
 
 127  
 }