1
2
3
4
5
6
7
8
9
10
11
12
13
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 @Deprecated
30 @Entity
31 public class Value implements Idable{
32 @Id
33 private String id;
34
35 private String value;
36
37 @Temporal(TemporalType.TIMESTAMP)
38 private Date createDate;
39
40
41
42
43 @PrePersist
44 public void prePersist() {
45 this.id = UUIDHelper.genStringUUID(this.id);
46 }
47
48
49
50
51 public Value() {
52 super();
53 }
54
55
56
57
58 public Value(String value) {
59 super();
60 this.value = value;
61 }
62
63
64
65
66 public String getId() {
67 return id;
68 }
69
70
71
72
73
74 public void setId(String id) {
75 this.id = id;
76 }
77
78
79
80
81 public String getValue() {
82 return value;
83 }
84
85
86
87
88
89 public void setValue(String value) {
90 this.value = value;
91 }
92
93
94 public Date getCreateDate() {
95 return createDate;
96 }
97
98 public void setCreateDate(Date createDate) {
99 this.createDate = createDate;
100 }
101 }