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
24
25
26
27
28 @Entity
29 @Table(name="KREN_RECIP_LIST_T")
30 public class NotificationRecipientList extends PersistableBusinessObjectBase{
31 @Id
32 @GeneratedValue(generator="KREN_RECIP_LIST_S")
33 @GenericGenerator(name="KREN_RECIP_LIST_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
34 @Parameter(name="sequence_name",value="KREN_RECIP_LIST_S"),
35 @Parameter(name="value_column",value="id")
36 })
37 @Column(name="RECIP_LIST_ID")
38 private Long id;
39 @Column(name="RECIP_TYP_CD", nullable=false)
40 private String recipientType;
41 @Column(name="RECIP_ID", nullable=false)
42 private String recipientId;
43
44 @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH, CascadeType.MERGE})
45 @JoinColumn(name="CHNL_ID", insertable=false, updatable=false)
46 private NotificationChannel channel;
47
48
49
50
51 public NotificationRecipientList() {
52 }
53
54
55
56
57
58 public NotificationChannel getChannel() {
59 return channel;
60 }
61
62
63
64
65
66
67 public void setChannel(NotificationChannel channel) {
68 this.channel = channel;
69 }
70
71
72
73
74
75 public Long getId() {
76 return id;
77 }
78
79
80
81
82
83 public void setId(Long id) {
84 this.id = id;
85 }
86
87
88
89
90
91 public String getRecipientId() {
92 return recipientId;
93 }
94
95
96
97
98
99 public void setRecipientId(String recipientId) {
100 this.recipientId = recipientId;
101 }
102
103
104
105
106
107 public String getRecipientType() {
108 return recipientType;
109 }
110
111
112
113
114
115 public void setRecipientType(String recipientType) {
116 this.recipientType = recipientType;
117 }
118 }
119