1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.mobility.push.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.NamedQueries;
27 import javax.persistence.NamedQuery;
28 import javax.persistence.Table;
29 import javax.persistence.Version;
30
31
32
33
34
35
36
37
38
39 @Entity
40 @Table(name="KME_PSH_SNDR_T")
41 public class Sender implements Serializable {
42
43 private static final long serialVersionUID = 1594899851834068598L;
44
45
46
47
48 @Id
49 @GeneratedValue(strategy = GenerationType.TABLE)
50 @Column(name="ID")
51 private Long id;
52
53
54
55
56 @Column(name="NM")
57 private String name;
58
59
60
61
62 @Column(name="HDN")
63 private boolean hidden;
64
65
66
67
68 @Column(name="SNM")
69 private String shortName;
70
71
72
73
74 @Column(name="DSCRP")
75 private String description;
76
77
78
79
80 @Column(name="USR")
81 private String username;
82
83
84
85
86
87 @Column(name="SENDER_KEY")
88 private String senderKey;
89
90
91
92
93 @Column(name="PST_TS")
94 private Timestamp postedTimestamp;
95
96
97
98
99 @Version
100 @Column(name="VER_NBR")
101 private Long versionNumber;
102
103
104
105
106 public Sender(){}
107
108
109
110
111
112 public Long getId() {
113 return id;
114 }
115
116
117
118
119
120 public void setId(Long id) {
121 this.id = id;
122 }
123
124
125
126
127
128 public String getName() {
129 return name;
130 }
131
132
133
134
135
136 public void setName(String name) {
137 this.name = name;
138 }
139
140
141
142
143
144 public boolean isHidden() {
145 return hidden;
146 }
147
148
149
150
151
152 public void setHidden(boolean hidden) {
153 this.hidden = hidden;
154 }
155
156
157
158
159
160 public String getShortName() {
161 return shortName;
162 }
163
164
165
166
167
168 public void setShortName(String shortName) {
169 this.shortName = shortName;
170 }
171
172
173
174
175
176 public String getDescription() {
177 return description;
178 }
179
180
181
182
183
184 public void setDescription(String description) {
185 this.description = description;
186 }
187
188
189
190
191
192 public String getUsername() {
193 return username;
194 }
195
196
197
198
199
200 public void setUsername(String username) {
201 this.username = username;
202 }
203
204
205
206
207
208 public String getSenderKey() {
209 return senderKey;
210 }
211
212
213
214
215
216 public void setSenderKey(String senderKey) {
217 this.senderKey = senderKey;
218 }
219
220
221
222
223
224 public Timestamp getPostedTimestamp() {
225 return postedTimestamp;
226 }
227
228
229
230
231
232 public void setPostedTimestamp(Timestamp postedTimestamp) {
233 this.postedTimestamp = postedTimestamp;
234 }
235
236
237
238
239
240 public Long getVersionNumber() {
241 return versionNumber;
242 }
243
244
245
246
247
248 public void setVersionNumber(Long versionNumber) {
249 this.versionNumber = versionNumber;
250 }
251
252
253
254
255
256 @Override
257 public String toString() {
258 return "\nSender Object:" +
259 "\nid=" + id +
260 "\nname=" + name +
261 "\nshortName=" + shortName +
262 "\nhidden=" + (hidden?"true":"false") +
263 "\ndescription=" + description +
264 "\nusername=" + username +
265 "\nsenderKey=" + senderKey +
266 "\npostedTimestamp="+ postedTimestamp + "\n";
267 }
268
269
270
271 }