Clover Coverage Report - Kuali Student 1.2-M1-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Mar 4 2011 04:03:38 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
16   154   16   1
0   90   1   16
16     1  
1    
 
  LoCategory       Line # 39 16 0% 16 0 100% 1.0
 
  (29)
 
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.lo.entity;
17   
18    import java.util.Date;
19    import java.util.List;
20   
21    import javax.persistence.CascadeType;
22    import javax.persistence.Column;
23    import javax.persistence.Entity;
24    import javax.persistence.JoinColumn;
25    import javax.persistence.ManyToOne;
26    import javax.persistence.OneToMany;
27    import javax.persistence.Table;
28    import javax.persistence.Temporal;
29    import javax.persistence.TemporalType;
30   
31    import org.kuali.student.common.entity.AttributeOwner;
32    import org.kuali.student.common.entity.MetaEntity;
33   
34    /**
35    * @author Kuali Student Team
36    */
37    @Entity
38    @Table(name = "KSLO_LO_CATEGORY")
 
39    public class LoCategory extends MetaEntity implements AttributeOwner<LoCategoryAttribute> {
40   
41    @Column(name = "NAME")
42    private
43    String name;
44   
45    @ManyToOne(cascade = CascadeType.ALL)
46    @JoinColumn(name = "RT_DESCR_ID")
47    private LoRichText descr;
48   
49    @ManyToOne
50    @JoinColumn(name = "LO_REPO_ID")
51    private LoRepository loRepository;
52   
53    @ManyToOne
54    @JoinColumn(name = "LO_CATEGORY_TYPE_ID")
55    private LoCategoryType loCategoryType;
56   
57    @Column(name="STATE")
58    private String state;
59   
60    @Temporal(TemporalType.TIMESTAMP)
61    @Column(name = "EFF_DT")
62    private Date effectiveDate;
63   
64    @Temporal(TemporalType.TIMESTAMP)
65    @Column(name = "EXPIR_DT")
66    private Date expirationDate;
67   
68    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
69    private List<LoCategoryAttribute> attributes;
70   
71    /**
72    * @param name the name to set
73    */
 
74  5 toggle public void setName(String name) {
75  5 this.name = name;
76    }
77   
78    /**
79    * @return the name
80    */
 
81  800 toggle public String getName() {
82  800 return name;
83    }
84   
 
85  800 toggle public LoRichText getDescr() {
86  800 return descr;
87    }
88   
 
89  5 toggle public void setDesc(LoRichText descr) {
90  5 this.descr = descr;
91    }
92   
93    /**
94    * @param loRepository the loRepository to set
95    */
 
96  9 toggle public void setLoRepository(LoRepository loRepository) {
97  9 this.loRepository = loRepository;
98    }
99   
100    /**
101    * @return the loRepository
102    */
 
103  2093 toggle public LoRepository getLoRepository() {
104  2093 return loRepository;
105    }
106   
 
107  801 toggle public LoCategoryType getLoCategoryType() {
108  801 return loCategoryType;
109    }
110   
 
111  9 toggle public void setLoCategoryType(LoCategoryType loCategoryType) {
112  9 this.loCategoryType = loCategoryType;
113    }
114   
 
115  6 toggle public void setState(String state) {
116  6 this.state = state;
117    }
118   
 
119  801 toggle public String getState() {
120  801 return state;
121    }
122   
 
123  800 toggle public Date getEffectiveDate() {
124  800 return effectiveDate;
125    }
126   
 
127  5 toggle public void setEffectiveDate(Date effectiveDate) {
128  5 this.effectiveDate = effectiveDate;
129    }
130   
 
131  800 toggle public Date getExpirationDate() {
132  800 return expirationDate;
133    }
134   
 
135  5 toggle public void setExpirationDate(Date expirationDate) {
136  5 this.expirationDate = expirationDate;
137    }
138   
139    /* (non-Javadoc)
140    * @see org.kuali.student.common.entity.AttributeOwner#getAttributes()
141    */
 
142  815 toggle @Override
143    public List<LoCategoryAttribute> getAttributes() {
144  815 return attributes;
145    }
146   
147    /* (non-Javadoc)
148    * @see org.kuali.student.common.entity.AttributeOwner#setAttributes(java.util.List)
149    */
 
150  10 toggle @Override
151    public void setAttributes(List<LoCategoryAttribute> attributes) {
152  10 this.attributes = attributes;
153    }
154    }