1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.enrollment.class1.lpr.model;
17
18 import javax.persistence.Column;
19 import javax.persistence.Id;
20 import javax.persistence.MappedSuperclass;
21 import javax.persistence.PrePersist;
22
23 import org.kuali.student.common.util.UUIDHelper;
24
25
26
27
28
29
30
31
32
33
34 @MappedSuperclass
35 public abstract class AbstractResultValueGroupEntity {
36
37 @Id
38 @Column(name = "ID")
39 private String id;
40
41 @Column (name="RESULT_VAL_GRP_ID", nullable=false)
42 private String resultValueGroupId;
43
44 @PrePersist
45 public void prePersist() {
46 this.id = UUIDHelper.genStringUUID();
47 }
48
49 public AbstractResultValueGroupEntity() {
50 }
51
52 public AbstractResultValueGroupEntity(String resultValueGroupId) {
53 this();
54
55 setResultValueGroupId(resultValueGroupId);
56 }
57
58 public String getId() {
59 return id;
60 }
61
62 public void setId(String id) {
63 this.id = id;
64 }
65
66 public String getResultValueGroupId() {
67 return resultValueGroupId;
68 }
69
70 public void setResultValueGroupId(String resultValueGroupId) {
71 this.resultValueGroupId = resultValueGroupId;
72 }
73
74 @Override
75 public String toString() {
76 StringBuilder builder = new StringBuilder();
77 builder.append("AbstractResultValueGroupEntity [id=");
78 builder.append(id);
79 builder.append(", resultValueGroupId=");
80 builder.append(resultValueGroupId);
81 builder.append("]");
82 return builder.toString();
83 }
84
85
86
87 }