1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ken.bo;
17
18 import org.hibernate.annotations.GenericGenerator;
19 import org.hibernate.annotations.Parameter;
20 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21
22 import javax.persistence.*;
23 import java.sql.Timestamp;
24
25
26
27
28
29
30
31 @Entity
32 @Table(name="KREN_NTFCTN_MSG_DELIV_T")
33 public class NotificationMessageDelivery extends PersistableBusinessObjectBase implements Lockable {
34 @Id
35 @GeneratedValue(generator="KREN_NTFCTN_MSG_DELIV_S")
36 @GenericGenerator(name="KREN_NTFCTN_MSG_DELIV_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
37 @Parameter(name="sequence_name",value="KREN_NTFCTN_MSG_DELIV_S"),
38 @Parameter(name="value_column",value="id")
39 })
40 @Column(name="NTFCTN_MSG_DELIV_ID")
41 private Long id;
42 @Column(name="STAT_CD", nullable=false)
43 private String messageDeliveryStatus;
44 @Column(name="RECIP_ID", nullable=false)
45 private String userRecipientId;
46 @Column(name="SYS_ID", nullable=true)
47 private String deliverySystemId;
48 @Column(name="LOCKD_DTTM", nullable=true)
49 private Timestamp lockedDateValue;
50
51
52
53
54
55
56
57
58 @OneToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH, CascadeType.DETACH})
59 @JoinColumn(name="NTFCTN_ID")
60 private NotificationBo notification;
61
62
63
64
65 public NotificationMessageDelivery() {
66 }
67
68
69
70
71
72 public Long getId() {
73 return id;
74 }
75
76
77
78
79
80 public void setId(Long id) {
81 this.id = id;
82 }
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107 public String getMessageDeliveryStatus() {
108 return messageDeliveryStatus;
109 }
110
111
112
113
114
115 public void setMessageDeliveryStatus(String deliveryStatus) {
116 this.messageDeliveryStatus = deliveryStatus;
117 }
118
119
120
121
122
123 public String getUserRecipientId() {
124 return userRecipientId;
125 }
126
127
128
129
130
131 public void setUserRecipientId(String userRecipientId) {
132 this.userRecipientId = userRecipientId;
133 }
134
135
136
137
138
139 public Timestamp getLockedDateValue() {
140 return this.lockedDateValue;
141 }
142
143
144
145
146
147 public void setLockedDateValue(Timestamp lockedDateValue) {
148 this.lockedDateValue = lockedDateValue;
149 }
150
151
152
153
154
155 public NotificationBo getNotification() {
156 return notification;
157 }
158
159
160
161
162
163 public void setNotification(NotificationBo notification) {
164 this.notification = notification;
165 }
166
167
168
169
170
171 public String getDeliverySystemId() {
172 return deliverySystemId;
173 }
174
175
176
177
178
179 public void setDeliverySystemId(String deliverySystemId) {
180 this.deliverySystemId = deliverySystemId;
181 }
182 }