Coverage Report - org.kuali.student.core.enumerationmanagement.entity.EnumeratedValue
 
Classes in this File Line Coverage Branch Coverage Complexity
EnumeratedValue
0%
0/26
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.core.enumerationmanagement.entity;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.Date;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.persistence.CascadeType;
 23  
 import javax.persistence.Column;
 24  
 import javax.persistence.Entity;
 25  
 import javax.persistence.FetchType;
 26  
 import javax.persistence.JoinColumn;
 27  
 import javax.persistence.JoinTable;
 28  
 import javax.persistence.ManyToMany;
 29  
 import javax.persistence.ManyToOne;
 30  
 import javax.persistence.Table;
 31  
 import javax.persistence.Temporal;
 32  
 import javax.persistence.TemporalType;
 33  
 
 34  
 import org.kuali.student.core.entity.BaseEntity;
 35  
 
 36  
 @Entity
 37  
 @Table(name="KSEM_ENUM_VAL_T")
 38  0
 public class EnumeratedValue extends BaseEntity {
 39  
 
 40  
         @Column(name="CD")
 41  
     String code;
 42  
     
 43  
     @Column(name="VAL")
 44  
     String value;
 45  
 
 46  
     @ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE}, targetEntity=Enumeration.class )
 47  
     @JoinColumn(name="ENUM_KEY")
 48  
     Enumeration enumeration;
 49  
         
 50  
     @Column(name="ABBREV_VAL")
 51  
     String abbrevValue;
 52  
         
 53  
     @Temporal(TemporalType.TIMESTAMP)
 54  
     @Column(name="EFF_DT")
 55  
     Date effectiveDate;
 56  
     
 57  
     @Temporal(TemporalType.TIMESTAMP)
 58  
     @Column(name="EXPIR_DT")
 59  
     Date expirationDate;
 60  
     
 61  
     @Column(name="SORT_KEY")
 62  
     int sortKey;
 63  
     
 64  0
     @ManyToMany(fetch = FetchType.LAZY,cascade = CascadeType.ALL)
 65  
     @JoinTable(name="KSEM_CTX_JN_ENUM_VAL_T",
 66  
       joinColumns=
 67  
             @JoinColumn(name="ENUM_VAL_ID", referencedColumnName="ID"),
 68  
       inverseJoinColumns=
 69  
             @JoinColumn(name="CTX_ID", referencedColumnName="ID")
 70  
     )
 71  
     List<ContextEntity> contextEntityList = new ArrayList<ContextEntity>();
 72  
 
 73  
     public Enumeration getEnumeration() {
 74  0
         return enumeration;
 75  
     }
 76  
 
 77  
     public void setEnumeration(Enumeration enumeration) {
 78  0
         this.enumeration = enumeration;
 79  0
     }
 80  
 
 81  
     public String getCode() {
 82  0
         return code;
 83  
     }
 84  
 
 85  
     public void setCode(String code) {
 86  0
         this.code = code;
 87  0
     }
 88  
 
 89  
     public String getAbbrevValue() {
 90  0
         return abbrevValue;
 91  
     }
 92  
 
 93  
     public void setAbbrevValue(String abbrevValue) {
 94  0
         this.abbrevValue = abbrevValue;
 95  0
     }
 96  
 
 97  
     public String getValue() {
 98  0
         return value;
 99  
     }
 100  
 
 101  
     public void setValue(String value) {
 102  0
         this.value = value;
 103  0
     }
 104  
 
 105  
     public Date getEffectiveDate() {
 106  0
         return effectiveDate;
 107  
     }
 108  
 
 109  
     public void setEffectiveDate(Date effectiveDate) {
 110  0
         this.effectiveDate = effectiveDate;
 111  0
     }
 112  
 
 113  
     public Date getExpirationDate() {
 114  0
         return expirationDate;
 115  
     }
 116  
 
 117  
     public void setExpirationDate(Date expirationDate) {
 118  0
         this.expirationDate = expirationDate;
 119  0
     }
 120  
 
 121  
     public int getSortKey() {
 122  0
         return sortKey;
 123  
     }
 124  
 
 125  
     public void setSortKey(int sortKey) {
 126  0
         this.sortKey = sortKey;
 127  0
     }
 128  
     
 129  
     public List<ContextEntity> getContextEntityList() {
 130  0
         return contextEntityList;
 131  
     }
 132  
     
 133  
     public void setContextEntityList(List<ContextEntity> contextEntityList) {
 134  0
         this.contextEntityList = contextEntityList;
 135  0
     }
 136  
 }