Clover Coverage Report - Kuali Student 1.1.0-SNAPSHOT (Aggregated)
Coverage timestamp: Tue Feb 15 2011 04:04:07 EST
../../../../../../img/srcFileCovDistChart0.png 48% of files have more coverage
10   122   10   1
0   63   1   10
10     1  
1    
 
  Scale       Line # 36 10 0% 10 20 0% 0.0
 
No Tests
 
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.lrc.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.core.entity.AttributeOwner;
32    import org.kuali.student.core.entity.MetaEntity;
33   
34    @Entity
35    @Table(name = "KSLR_SCALE")
 
36    public class Scale extends MetaEntity implements AttributeOwner<ScaleAttribute>{
37   
38    @Column(name = "NAME")
39    private String name;
40   
41    @ManyToOne(cascade = CascadeType.ALL)
42    @JoinColumn(name = "RT_DESCR_ID")
43    private LrcRichText descr;
44   
45    @Temporal(TemporalType.TIMESTAMP)
46    @Column(name = "EFF_DT")
47    private Date effectiveDate;
48   
49    @Temporal(TemporalType.TIMESTAMP)
50    @Column(name = "EXPIR_DT")
51    private Date expirationDate;
52   
53    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
54    private List<ScaleAttribute> attributes;
55   
56    /**
57    * @return the name
58    */
 
59  0 toggle public String getName() {
60  0 return name;
61    }
62   
63    /**
64    * @param name the name to set
65    */
 
66  0 toggle public void setName(String name) {
67  0 this.name = name;
68    }
69   
70    /**
71    * @return the descr
72    */
 
73  0 toggle public LrcRichText getDesc() {
74  0 return descr;
75    }
76   
77    /**
78    * @param descr the descr to set
79    */
 
80  0 toggle public void setDesc(LrcRichText descr) {
81  0 this.descr = descr;
82    }
83   
84    /**
85    * @return the effectiveDate
86    */
 
87  0 toggle public Date getEffectiveDate() {
88  0 return effectiveDate;
89    }
90   
91    /**
92    * @param effectiveDate the effectiveDate to set
93    */
 
94  0 toggle public void setEffectiveDate(Date effectiveDate) {
95  0 this.effectiveDate = effectiveDate;
96    }
97   
98    /**
99    * @return the expirationDate
100    */
 
101  0 toggle public Date getExpirationDate() {
102  0 return expirationDate;
103    }
104   
105    /**
106    * @param expirationDate the expirationDate to set
107    */
 
108  0 toggle public void setExpirationDate(Date expirationDate) {
109  0 this.expirationDate = expirationDate;
110    }
111   
 
112  0 toggle @Override
113    public List<ScaleAttribute> getAttributes() {
114  0 return attributes;
115    }
116   
 
117  0 toggle @Override
118    public void setAttributes(List<ScaleAttribute> attributes) {
119  0 this.attributes = attributes;
120    }
121   
122    }