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 javax.persistence.CascadeType;
19 import javax.persistence.Column;
20 import javax.persistence.Entity;
21 import javax.persistence.FetchType;
22 import javax.persistence.Id;
23 import javax.persistence.JoinColumn;
24 import javax.persistence.JoinColumns;
25 import javax.persistence.ManyToOne;
26 import javax.persistence.Table;
27
28
29
30
31
32
33 @Entity
34 @Table(name="KREN_RECIP_T")
35 public class NotificationRecipient {
36 @Id
37 @Column(name="RECIP_ID")
38 private Long id;
39 @Column(name="NTFCTN_ID", nullable=false)
40 private Long notificationId;
41 @Column(name="RECIP_TYP_CD", nullable=false)
42 private String recipientType;
43 @Column(name="PRNCPL_ID", nullable=false)
44 private String recipientId;
45
46
47 @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.REMOVE})
48 @JoinColumn(name="NTFCTN_ID", insertable=false, updatable=false)
49 private Notification notification;
50
51
52
53
54 public NotificationRecipient() {
55 }
56
57
58
59
60
61 public Long getId() {
62 return id;
63 }
64
65
66
67
68
69 public void setId(Long id) {
70 this.id = id;
71 }
72
73
74
75
76
77 public Long getNotificationId() {
78 return notificationId;
79 }
80
81
82
83
84
85 public void setNotificationId(Long notificationId) {
86 this.notificationId = notificationId;
87 }
88
89
90
91
92
93 public String getRecipientId() {
94 return recipientId;
95 }
96
97
98
99
100
101 public void setRecipientId(String recipientId) {
102 this.recipientId = recipientId;
103 }
104
105
106
107
108
109 public String getRecipientType() {
110 return recipientType;
111 }
112
113
114
115
116
117 public void setRecipientType(String recipientType) {
118 this.recipientType = recipientType;
119 }
120 }
121