Coverage Report - org.kuali.student.lum.lu.entity.AllowedLuLuRelationType
 
Classes in this File Line Coverage Branch Coverage Complexity
AllowedLuLuRelationType
0%
0/16
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.lum.lu.entity;
 17  
 
 18  
 import java.util.Date;
 19  
 
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Entity;
 22  
 import javax.persistence.JoinColumn;
 23  
 import javax.persistence.ManyToOne;
 24  
 import javax.persistence.NamedQueries;
 25  
 import javax.persistence.NamedQuery;
 26  
 import javax.persistence.Table;
 27  
 import javax.persistence.Temporal;
 28  
 import javax.persistence.TemporalType;
 29  
 
 30  
 import org.kuali.student.common.entity.MetaEntity;
 31  
 
 32  
 @Entity
 33  
 @Table(name = "KSLU_LU_LU_ALOW_RELTN_TYPE")
 34  
 @NamedQueries( { @NamedQuery(name = "AllowedLuLuRelationType.getAllowedTypesByLuTypes", query = "SELECT relType.relationType.id FROM AllowedLuLuRelationType relType WHERE luType.id = :luTypeId and relatedLuType.id = :relatedLuTypeId") })
 35  0
 public class AllowedLuLuRelationType extends MetaEntity {
 36  
 
 37  
         @ManyToOne
 38  
         @JoinColumn(name = "LU_LU_RELTN_TYPE_ID")
 39  
         private LuLuRelationType relationType;
 40  
         
 41  
         @ManyToOne
 42  
         @JoinColumn(name = "LU_TYPE_ID")
 43  
         private LuType luType;
 44  
         
 45  
         @ManyToOne
 46  
         @JoinColumn(name = "LU_REL_TYPE_ID")
 47  
         private LuType relatedLuType;
 48  
         
 49  
         @Temporal(TemporalType.TIMESTAMP)
 50  
         @Column(name = "EFF_DT")
 51  
         private Date effectiveDate;
 52  
 
 53  
         @Temporal(TemporalType.TIMESTAMP)
 54  
         @Column(name = "EXPIR_DT")
 55  
         private Date expirationDate;
 56  
 
 57  
         public LuLuRelationType getRelationType() {
 58  0
                 return relationType;
 59  
         }
 60  
 
 61  
         public void setRelationType(LuLuRelationType relationType) {
 62  0
                 this.relationType = relationType;
 63  0
         }
 64  
 
 65  
         public LuType getLuType() {
 66  0
                 return luType;
 67  
         }
 68  
 
 69  
         public void setLuType(LuType luType) {
 70  0
                 this.luType = luType;
 71  0
         }
 72  
 
 73  
         public LuType getRelatedLuType() {
 74  0
                 return relatedLuType;
 75  
         }
 76  
 
 77  
         public void setRelatedLuType(LuType relatedLuType) {
 78  0
                 this.relatedLuType = relatedLuType;
 79  0
         }
 80  
 
 81  
         /**
 82  
          * @param effectiveDate the effectiveDate to set
 83  
          */
 84  
         public void setEffectiveDate(Date effectiveDate) {
 85  0
                 this.effectiveDate = effectiveDate;
 86  0
         }
 87  
 
 88  
         /**
 89  
          * @return the effectiveDate
 90  
          */
 91  
         public Date getEffectiveDate() {
 92  0
                 return effectiveDate;
 93  
         }
 94  
 
 95  
         /**
 96  
          * @param expirationDate the expirationDate to set
 97  
          */
 98  
         public void setExpirationDate(Date expirationDate) {
 99  0
                 this.expirationDate = expirationDate;
 100  0
         }
 101  
 
 102  
         /**
 103  
          * @return the expirationDate
 104  
          */
 105  
         public Date getExpirationDate() {
 106  0
                 return expirationDate;
 107  
         }
 108  
 }