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