Clover Coverage Report - Kuali Student 1.1-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Mar 3 2011 04:02:59 EST
../../../../../img/srcFileCovDistChart8.png 32% of files have more coverage
10   100   9   1.11
0   46   0.9   9
9     1  
1    
 
  Value       Line # 30 10 0% 9 4 78.9% 0.7894737
 
  (7)
 
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.common_test_tester.support;
17   
18    import java.util.Date;
19   
20    import javax.persistence.Entity;
21    import javax.persistence.Id;
22    import javax.persistence.PrePersist;
23    import javax.persistence.Temporal;
24    import javax.persistence.TemporalType;
25   
26    import org.kuali.student.common.test.spring.Idable;
27    import org.kuali.student.common.util.UUIDHelper;
28   
29    @Entity
 
30    public class Value implements Idable{
31    @Id
32    private String id;
33   
34    private String value;
35   
36    @Temporal(TemporalType.TIMESTAMP)
37    private Date createDate;
38   
39    /**
40    * AutoGenerate the Id
41    */
 
42  16 toggle @PrePersist
43    public void prePersist() {
44  16 this.id = UUIDHelper.genStringUUID(this.id);
45    }
46   
47    /**
48    *
49    */
 
50  13 toggle public Value() {
51  13 super();
52    }
53   
54    /**
55    * @param value
56    */
 
57  8 toggle public Value(String value) {
58  8 super();
59  8 this.value = value;
60    }
61   
62    /**
63    * @return the id
64    */
 
65  8 toggle public String getId() {
66  8 return id;
67    }
68   
69    /**
70    * @param id
71    * the id to set
72    */
 
73  4 toggle public void setId(String id) {
74  4 this.id = id;
75    }
76   
77    /**
78    * @return the value
79    */
 
80  8 toggle public String getValue() {
81  8 return value;
82    }
83   
84    /**
85    * @param value
86    * the value to set
87    */
 
88  9 toggle public void setValue(String value) {
89  9 this.value = value;
90    }
91   
92   
 
93  0 toggle public Date getCreateDate() {
94  0 return createDate;
95    }
96   
 
97  0 toggle public void setCreateDate(Date createDate) {
98  0 this.createDate = createDate;
99    }
100    }