1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.krad.test.conference;
18
19 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
20
21 import javax.persistence.CascadeType;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.Id;
26 import javax.persistence.JoinColumn;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.OneToMany;
29 import javax.persistence.Table;
30 import javax.persistence.Temporal;
31 import javax.persistence.TemporalType;
32 import java.io.Serializable;
33 import java.util.ArrayList;
34 import java.util.Date;
35 import java.util.List;
36
37 @Entity
38 @Table(name="KRTST_CONF_SESS_T")
39 public class ConferenceSession implements Serializable {
40
41 private static final long serialVersionUID = -7022847412734257626L;
42
43 @Id
44 @Column(name = "ID")
45 @GeneratedValue(generator = "KRTST_CONF_SESS_S")
46 @PortableSequenceGenerator(name = "KRTST_CONF_SESS_S")
47 private String id;
48
49 @Column(name = "TITLE")
50 private String sessionTitle;
51
52 @Column(name = "SESS_DT")
53 @Temporal(TemporalType.DATE)
54 private Date date;
55
56 @Column(name = "START_TIME")
57 private String startTime;
58
59 @Column(name = "END_TIME")
60 private String endTime;
61
62 @Column(name = "SESS_TYPE_CODE")
63 private String sessionTypeCode;
64
65 @Column(name = "DESCRIPTION")
66 private String description;
67
68
69
70
71 @ManyToOne(cascade = CascadeType.ALL)
72 @JoinColumn(name = "COORD_ID")
73 private SessionCoordinator coordinator;
74
75
76
77
78 @Column(name = "ALT_COORD1_ID")
79 private Long altCoordinator1Id;
80 @ManyToOne(cascade = CascadeType.ALL)
81 @JoinColumn(name = "ALT_COORD1_ID", insertable = false, updatable = false)
82 private SessionCoordinator altCoordinator1;
83
84
85
86
87 @Column(name = "ALT_COORD2_ID", insertable = false, updatable = false)
88 private Long altCoordinator2Id;
89 @ManyToOne(cascade = CascadeType.ALL)
90 @JoinColumn(name = "ALT_COORD2_ID")
91 private SessionCoordinator altCoordinator2;
92
93
94
95
96
97 @ManyToOne
98 @JoinColumn(name = "ROOM_ID")
99 private Room room;
100
101
102
103
104 @Column(name = "ALT_ROOM1_ID")
105 private String altRoom1Id;
106 @ManyToOne
107 @JoinColumn(name = "ALT_ROOM1_ID", insertable = false, updatable = false)
108 private Room altRoom1;
109
110
111
112
113 @Column(name = "ALT_ROOM2_ID", insertable = false, updatable = false)
114 private String altRoom2Id;
115 @ManyToOne
116 @JoinColumn(name = "ALT_ROOM2_ID")
117 private Room altRoom2;
118
119
120 @OneToMany(cascade = CascadeType.ALL, mappedBy = "session")
121 private List<SessionPresenter> presenters = new ArrayList<SessionPresenter>();
122
123 public String getId() {
124 return id;
125 }
126
127 public void setId(String id) {
128 this.id = id;
129 }
130
131 public String getSessionTitle() {
132 return sessionTitle;
133 }
134
135 public void setSessionTitle(String sessionTitle) {
136 this.sessionTitle = sessionTitle;
137 }
138
139 public Date getDate() {
140 return date;
141 }
142
143 public void setDate(Date date) {
144 this.date = date;
145 }
146
147 public String getStartTime() {
148 return startTime;
149 }
150
151 public void setStartTime(String startTime) {
152 this.startTime = startTime;
153 }
154
155 public String getEndTime() {
156 return endTime;
157 }
158
159 public void setEndTime(String endTime) {
160 this.endTime = endTime;
161 }
162
163 public String getSessionTypeCode() {
164 return sessionTypeCode;
165 }
166
167 public void setSessionTypeCode(String sessionTypeCode) {
168 this.sessionTypeCode = sessionTypeCode;
169 }
170
171 public String getDescription() {
172 return description;
173 }
174
175 public void setDescription(String description) {
176 this.description = description;
177 }
178
179 public SessionCoordinator getCoordinator() {
180 return coordinator;
181 }
182
183 public void setCoordinator(SessionCoordinator coordinator) {
184 this.coordinator = coordinator;
185 }
186
187 public Long getAltCoordinator1Id() {
188 return altCoordinator1Id;
189 }
190
191 public void setAltCoordinator1Id(Long altCoordinator1Id) {
192 this.altCoordinator1Id = altCoordinator1Id;
193 }
194
195 public SessionCoordinator getAltCoordinator1() {
196 return altCoordinator1;
197 }
198
199 public void setAltCoordinator1(SessionCoordinator altCoordinator1) {
200 this.altCoordinator1 = altCoordinator1;
201 }
202
203 public Long getAltCoordinator2Id() {
204 return altCoordinator2Id;
205 }
206
207 public void setAltCoordinator2Id(Long altCoordinator2Id) {
208 this.altCoordinator2Id = altCoordinator2Id;
209 }
210
211 public SessionCoordinator getAltCoordinator2() {
212 return altCoordinator2;
213 }
214
215 public void setAltCoordinator2(SessionCoordinator altCoordinator2) {
216 this.altCoordinator2 = altCoordinator2;
217 }
218
219 public Room getRoom() {
220 return room;
221 }
222
223 public void setRoom(Room room) {
224 this.room = room;
225 }
226
227 public String getAltRoom1Id() {
228 return altRoom1Id;
229 }
230
231 public void setAltRoom1Id(String altRoom1Id) {
232 this.altRoom1Id = altRoom1Id;
233 }
234
235 public Room getAltRoom1() {
236 return altRoom1;
237 }
238
239 public void setAltRoom1(Room altRoom1) {
240 this.altRoom1 = altRoom1;
241 }
242
243 public String getAltRoom2Id() {
244 return altRoom2Id;
245 }
246
247 public void setAltRoom2Id(String altRoom2Id) {
248 this.altRoom2Id = altRoom2Id;
249 }
250
251 public Room getAltRoom2() {
252 return altRoom2;
253 }
254
255 public void setAltRoom2(Room altRoom2) {
256 this.altRoom2 = altRoom2;
257 }
258
259 public List<SessionPresenter> getPresenters() {
260 return presenters;
261 }
262
263 public void setPresenters(List<SessionPresenter> presenters) {
264 this.presenters = presenters;
265 }
266
267 }