-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConferenceSession.java
213 lines (163 loc) · 5.13 KB
/
ConferenceSession.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
package com.ioextendedgr.web.data;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.Table;
/**
* The persistent class for the conference_session database table.
*
*/
@Entity
@Table(name = "conference_session")
public class ConferenceSession implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "create_dttm")
private Timestamp createDttm;
@Column(name = "duration")
private Integer duration;
@Column(name = "full_desc")
private String fullDesc;
@Column(name = "last_update_dttm")
private Timestamp lastUpdateDttm;
private String name;
@Column(name = "short_desc")
private String shortDesc;
@Column(name = "start_dttm")
private Timestamp startDttm;
// bi-directional many-to-one association to Conference
@ManyToOne
@JoinColumn(name = "conference_id")
private Conference conference;
// bi-directional many-to-one association to ConferenceSessionType
@ManyToOne
@JoinColumn(name = "conference_session_type_id")
private ConferenceSessionType conferenceSessionType;
// bi-directional many-to-one association to Room
@ManyToOne
@JoinColumn(name = "room_id")
private Room room;
// bi-directional many-to-one association to ConferenceSessionPresenter
@OneToMany(mappedBy = "conferenceSession")
private List<ConferenceSessionPresenter> conferenceSessionPresenters;
// bi-directional many-to-one association to ConferenceSessionRegistration
@OneToMany(mappedBy = "conferenceSession")
private List<ConferenceSessionRegistration> conferenceSessionRegistrations;
public ConferenceSession() {
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public Timestamp getCreateDttm() {
return this.createDttm;
}
public void setCreateDttm(Timestamp createDttm) {
this.createDttm = createDttm;
}
public Integer getDuration() {
return this.duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
public String getFullDesc() {
return this.fullDesc;
}
public void setFullDesc(String fullDesc) {
this.fullDesc = fullDesc;
}
public Timestamp getLastUpdateDttm() {
return this.lastUpdateDttm;
}
public void setLastUpdateDttm(Timestamp lastUpdateDttm) {
this.lastUpdateDttm = lastUpdateDttm;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getShortDesc() {
return this.shortDesc;
}
public void setShortDesc(String shortDesc) {
this.shortDesc = shortDesc;
}
public Timestamp getStartDttm() {
return this.startDttm;
}
public void setStartDttm(Timestamp startDttm) {
this.startDttm = startDttm;
}
public Conference getConference() {
return this.conference;
}
public void setConference(Conference conference) {
this.conference = conference;
}
public ConferenceSessionType getConferenceSessionType() {
return this.conferenceSessionType;
}
public void setConferenceSessionType(
ConferenceSessionType conferenceSessionType) {
this.conferenceSessionType = conferenceSessionType;
}
public Room getRoom() {
return this.room;
}
public void setRoom(Room room) {
this.room = room;
}
public List<ConferenceSessionPresenter> getConferenceSessionPresenters() {
return this.conferenceSessionPresenters;
}
public void setConferenceSessionPresenters(
List<ConferenceSessionPresenter> conferenceSessionPresenters) {
this.conferenceSessionPresenters = conferenceSessionPresenters;
}
public List<ConferenceSessionRegistration> getConferenceSessionRegistrations() {
return this.conferenceSessionRegistrations;
}
public void setConferenceSessionRegistrations(
List<ConferenceSessionRegistration> conferenceSessionRegistrations) {
this.conferenceSessionRegistrations = conferenceSessionRegistrations;
}
public ConferenceSessionRegistration addConferenceSessionRegistration(
ConferenceSessionRegistration conferenceSessionRegistration) {
getConferenceSessionRegistrations().add(conferenceSessionRegistration);
conferenceSessionRegistration.setConferenceSession(this);
return conferenceSessionRegistration;
}
public ConferenceSessionRegistration removeConferenceSessionRegistration(
ConferenceSessionRegistration conferenceSessionRegistration) {
getConferenceSessionRegistrations().remove(
conferenceSessionRegistration);
conferenceSessionRegistration.setConferenceSession(null);
return conferenceSessionRegistration;
}
@PreUpdate
public void onPreUpdate() {
this.lastUpdateDttm = new Timestamp(System.currentTimeMillis());
}
@PrePersist
public void onPrePersist() {
this.createDttm = new Timestamp(System.currentTimeMillis());
this.lastUpdateDttm = new Timestamp(System.currentTimeMillis());
}
}