Clover Coverage Report - Kuali Student 1.3.0-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Apr 28 2011 05:03:32 EDT
../../../../../../img/srcFileCovDistChart0.png 2% of files have more coverage
14   126   14   1
0   86   1   14
14     1  
1    
 
  Milestone       Line # 42 14 0% 14 28 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.core.atp.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.NamedQueries;
27    import javax.persistence.NamedQuery;
28    import javax.persistence.OneToMany;
29    import javax.persistence.Table;
30    import javax.persistence.Temporal;
31    import javax.persistence.TemporalType;
32   
33    import org.kuali.student.common.entity.AttributeOwner;
34    import org.kuali.student.common.entity.MetaEntity;
35    @Entity
36    @Table(name = "KSAP_MLSTN")
37    @NamedQueries( {
38    @NamedQuery(name = "Milestone.findMilestonesByAtp", query = "SELECT milestone FROM Milestone milestone WHERE milestone.atp.id = :atpId"),
39    @NamedQuery(name = "Milestone.findMilestonesByDates", query = "SELECT milestone FROM Milestone milestone WHERE milestone.milestoneDate >= :startDate AND milestone.milestoneDate <= :endDate"),
40    @NamedQuery(name = "Milestone.findMilestonesByDatesAndType", query = "SELECT milestone FROM Milestone milestone WHERE milestone.type.id = :milestoneTypeId AND milestone.milestoneDate >= :startDate AND milestone.milestoneDate <= :endDate")
41    })
 
42    public class Milestone extends MetaEntity implements
43    AttributeOwner<MilestoneAttribute> {
44   
45    @Column(name = "NAME")
46    private String name;
47   
48    @ManyToOne(cascade=CascadeType.ALL)
49    @JoinColumn(name = "RT_DESCR_ID")
50    private AtpRichText descr;
51   
52    @ManyToOne
53    @JoinColumn(name = "ATP_ID")
54    private Atp atp;
55   
56    @Temporal(TemporalType.TIMESTAMP)
57    @Column(name="MLSTN_DT")
58    private Date milestoneDate;
59   
60    @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
61    private List<MilestoneAttribute> attributes;
62   
63    @ManyToOne
64    @JoinColumn(name = "MLSTN_TYPE_ID")
65    private MilestoneType type;
66   
67    @Column(name="STATE")
68    private String state;
69   
 
70  0 toggle public String getName() {
71  0 return name;
72    }
73   
 
74  0 toggle public void setName(String name) {
75  0 this.name = name;
76    }
77   
 
78  0 toggle public Atp getAtp() {
79  0 return atp;
80    }
81   
 
82  0 toggle public void setAtp(Atp atp) {
83  0 this.atp = atp;
84    }
85   
 
86  0 toggle public Date getMilestoneDate() {
87  0 return milestoneDate;
88    }
89   
 
90  0 toggle public void setMilestoneDate(Date milestoneDate) {
91  0 this.milestoneDate = milestoneDate;
92    }
93   
 
94  0 toggle public List<MilestoneAttribute> getAttributes() {
95  0 return attributes;
96    }
97   
 
98  0 toggle public void setAttributes(List<MilestoneAttribute> attributes) {
99  0 this.attributes = attributes;
100    }
101   
 
102  0 toggle public MilestoneType getType() {
103  0 return type;
104    }
105   
 
106  0 toggle public void setType(MilestoneType type) {
107  0 this.type = type;
108    }
109   
 
110  0 toggle public String getState() {
111  0 return state;
112    }
113   
 
114  0 toggle public void setState(String state) {
115  0 this.state = state;
116    }
117   
 
118  0 toggle public void setDescr(AtpRichText descr) {
119  0 this.descr = descr;
120    }
121   
 
122  0 toggle public AtpRichText getDescr() {
123  0 return descr;
124    }
125   
126    }