Clover Coverage Report - Kuali Student 1.2-M5-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Aug 29 2011 05:04:27 EDT
../../../../../../img/srcFileCovDistChart9.png 25% of files have more coverage
6   67   6   1
0   39   1   6
6     1  
1    
 
  ContextEntity       Line # 32 6 0% 6 2 83.3% 0.8333333
 
  (10)
 
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    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  234 toggle public String getContextKey() {
44  234 return contextKey;
45    }
46   
 
47  219 toggle public void setContextKey(String type) {
48  219 this.contextKey = type;
49    }
50   
 
51  234 toggle public String getContextValue() {
52  234 return contextValue;
53    }
54   
 
55  219 toggle public void setContextValue(String value) {
56  219 this.contextValue = value;
57    }
58   
 
59  0 toggle public List<EnumeratedValue> getEnumeratedValueList() {
60  0 return enumeratedValueList;
61    }
 
62  15 toggle public void setEnumeratedValueList(
63    List<EnumeratedValue> enumeratedValueList) {
64  15 this.enumeratedValueList = enumeratedValueList;
65    }
66   
67    }