1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.mobility.feedback.entity;
17
18 import java.io.Serializable;
19 import java.sql.Timestamp;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import javax.persistence.Table;
27 import javax.persistence.Version;
28
29 @Entity
30 @Table(name="KME_FDBCK_SBJCT_T")
31 public class FeedbackSubject implements Serializable {
32
33 private static final long serialVersionUID = 7273789153652061369L;
34
35 @Id
36 @GeneratedValue(strategy = GenerationType.TABLE)
37 @Column(name="ID")
38 private Long feedbackSubjectId;
39
40 @Column(name="SUB_KEY")
41 private String subjectKey;
42
43 @Column(name="SUB_VAL")
44 private String subjectValue;
45
46 @Version
47 @Column(name="VER_NBR")
48 protected Long versionNumber;
49
50 public FeedbackSubject() {}
51
52
53
54
55
56 public Long getFeedbackSubjectId() {
57 return feedbackSubjectId;
58 }
59
60
61
62
63
64 public void setFeedbackSubjectId(Long feedbackSubjectId) {
65 this.feedbackSubjectId = feedbackSubjectId;
66 }
67
68
69
70
71 public String getSubjectKey() {
72 return subjectKey;
73 }
74
75
76
77
78
79 public void setSubjectKey(String subjectKey) {
80 this.subjectKey = subjectKey;
81 }
82
83
84
85
86
87 public String getSubjectValue() {
88 return subjectValue;
89 }
90
91
92
93
94
95 public void setSubjectValue(String subjectValue) {
96 this.subjectValue = subjectValue;
97 }
98
99
100
101
102
103 public Long getVersionNumber() {
104 return versionNumber;
105 }
106
107
108
109
110
111 public void setVersionNumber(Long versionNumber) {
112 this.versionNumber = versionNumber;
113 }
114
115
116
117
118
119 public static long getSerialversionuid() {
120 return serialVersionUID;
121 }
122
123
124 @Override
125 public String toString() {
126 String newline = "\r\n";
127
128 StringBuilder sb = new StringBuilder();
129 sb.append("Subject Key: ");
130 sb.append(this.getSubjectKey());
131 sb.append(newline);
132 sb.append("Subject Value: ");
133 sb.append(this.getSubjectValue());
134 sb.append(newline);
135 sb.append(newline);
136 return sb.toString();
137 }
138 }