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_RVWER_T")
30 public class NotificationChannelReviewer extends PersistableBusinessObjectBase{
31 @Id
32 @GeneratedValue(generator="KREN_RVWER_S")
33 @GenericGenerator(name="KREN_RVWER_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
34 @Parameter(name="sequence_name",value="KREN_RVWER_S"),
35 @Parameter(name="value_column",value="id")
36 })
37 @Column(name="RVWER_ID")
38 private Long id;
39 @OneToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH, CascadeType.DETACH })
40 @JoinColumn(name="CHNL_ID")
41 private NotificationChannel channel;
42 @Column(name="TYP", nullable=false)
43 private String reviewerType;
44 @Column(name="PRNCPL_ID", nullable=false)
45 private String reviewerId;
46
47
48
49
50
51 public Long getId() {
52 return id;
53 }
54
55
56
57
58
59 public void setId(Long id) {
60 this.id = id;
61 }
62
63
64
65
66
67 public NotificationChannel getChannel() {
68 return channel;
69 }
70
71
72
73
74
75 public void setChannel(NotificationChannel channel) {
76 this.channel = channel;
77 }
78
79
80
81
82
83
84 public String getReviewerId() {
85 return reviewerId;
86 }
87
88
89
90
91
92 public void setReviewerId(String reviewerId) {
93 this.reviewerId = reviewerId;
94 }
95
96
97
98
99
100 public String getReviewerType() {
101 return reviewerType;
102 }
103
104
105
106
107
108 public void setReviewerType(String reviewerType) {
109 this.reviewerType = reviewerType;
110 }
111 }