1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kcb.bo;
17
18 import javax.persistence.Column;
19 import javax.persistence.Entity;
20 import javax.persistence.Id;
21 import javax.persistence.Table;
22 import javax.persistence.Version;
23
24 import org.apache.commons.lang.builder.ToStringBuilder;
25
26
27
28
29
30
31
32
33 @Entity
34 @Table(name="KREN_RECIP_DELIV_T")
35 public class RecipientDelivererConfig {
36
37
38
39 public static final String RECIPIENT_ID = "recipientId";
40 public static final String CHANNEL = "channel";
41
42 @Id
43 @Column(name="RECIP_DELIV_ID")
44 private Long id;
45 @Column(name="RECIP_ID", nullable=false)
46 private String recipientId;
47 @Column(name="NM", nullable=false)
48 private String delivererName;
49 @Column(name="CHNL", nullable=false)
50 private String channel;
51
52
53
54 @Version
55 @Column(name="VER_NBR")
56 private Integer lockVerNbr;
57
58
59
60
61
62 public Long getId() {
63 return id;
64 }
65
66
67
68
69
70 public void setId(Long id) {
71 this.id = id;
72 }
73
74
75
76
77
78 public Integer getLockVerNbr() {
79 return lockVerNbr;
80 }
81
82
83
84
85
86 public void setLockVerNbr(Integer lockVerNbr) {
87 this.lockVerNbr = lockVerNbr;
88 }
89
90
91
92
93
94 public String getRecipientId() {
95 return recipientId;
96 }
97
98
99
100
101
102 public void setRecipientId(String recipientId) {
103 this.recipientId = recipientId;
104 }
105
106
107
108
109
110 public String getDelivererName() {
111 return delivererName;
112 }
113
114
115
116
117
118 public void setDelivererName(String delivererName) {
119 this.delivererName = delivererName;
120 }
121
122
123
124
125
126 public String getChannel() {
127 return channel;
128 }
129
130
131
132
133
134 public void setChannel(String channel) {
135 this.channel = channel;
136 }
137
138
139
140
141 @Override
142 public String toString() {
143 return new ToStringBuilder(this).append("id", id)
144 .append("recipientId", recipientId)
145 .append("delivererName", delivererName)
146 .append("channel", channel)
147 .toString();
148 }
149 }