Coverage Report - org.kuali.student.core.enumerationmanagement.entity.ContextEntity
 
Classes in this File Line Coverage Branch Coverage Complexity
ContextEntity
0%
0/10
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.List;
 19  
 
 20  
 import javax.persistence.CascadeType;
 21  
 import javax.persistence.Column;
 22  
 import javax.persistence.Entity;
 23  
 import javax.persistence.FetchType;
 24  
 import javax.persistence.ManyToMany;
 25  
 import javax.persistence.Table;
 26  
 import javax.persistence.UniqueConstraint;
 27  
 
 28  
 import org.kuali.student.common.entity.BaseEntity;
 29  
 
 30  
 @Entity
 31  
 @Table(name="KSEM_CTX_T", uniqueConstraints={@UniqueConstraint(columnNames={"CTX_KEY", "CTX_VAL"})})
 32  0
 public class ContextEntity extends BaseEntity {
 33  
     
 34  
     @Column(name="CTX_KEY")
 35  
     String contextKey;
 36  
     
 37  
     @Column(name="CTX_VAL")
 38  
     String contextValue;
 39  
 
 40  
     @ManyToMany(mappedBy="contextEntityList", fetch = FetchType.LAZY,cascade = CascadeType.ALL)
 41  
     List<EnumeratedValue> enumeratedValueList;
 42  
     
 43  
     public String getContextKey() {
 44  0
         return contextKey;
 45  
     }
 46  
 
 47  
     public void setContextKey(String type) {
 48  0
         this.contextKey = type;
 49  0
     }
 50  
 
 51  
     public String getContextValue() {
 52  0
         return contextValue;
 53  
     }
 54  
 
 55  
     public void setContextValue(String value) {
 56  0
         this.contextValue = value;
 57  0
     }
 58  
     
 59  
         public List<EnumeratedValue> getEnumeratedValueList() {
 60  0
                 return enumeratedValueList;
 61  
         }
 62  
         public void setEnumeratedValueList(
 63  
                         List<EnumeratedValue> enumeratedValueList) {
 64  0
                 this.enumeratedValueList = enumeratedValueList;
 65  0
         }
 66  
     
 67  
 }