1 | |
package org.kuali.student.enrollment.class1.lui.model; |
2 | |
|
3 | |
import javax.persistence.Column; |
4 | |
import javax.persistence.Entity; |
5 | |
import javax.persistence.JoinColumn; |
6 | |
import javax.persistence.ManyToOne; |
7 | |
import javax.persistence.Table; |
8 | |
|
9 | |
import org.kuali.student.r2.common.dto.MeetingScheduleInfo; |
10 | |
import org.kuali.student.r2.common.entity.MetaEntity; |
11 | |
import org.kuali.student.r2.common.infc.MeetingSchedule; |
12 | |
|
13 | |
@Entity |
14 | |
@Table(name = "KSEN_LUI_MTG_SCHE") |
15 | |
public class MeetingScheduleEntity extends MetaEntity { |
16 | |
@Column(name = "SPACE_ID") |
17 | |
private String spaceId; |
18 | |
|
19 | |
@Column(name = "TM_PRD") |
20 | |
private String timePeriods; |
21 | |
|
22 | |
@ManyToOne |
23 | |
@JoinColumn(name="LUI_ID") |
24 | |
private LuiEntity lui; |
25 | |
|
26 | 0 | public MeetingScheduleEntity(){} |
27 | |
|
28 | 0 | public MeetingScheduleEntity(MeetingSchedule meetingSchedule){ |
29 | |
try{ |
30 | 0 | this.setId(meetingSchedule.getId()); |
31 | 0 | this.setSpaceId(meetingSchedule.getSpaceId()); |
32 | 0 | this.setTimePeriods(meetingSchedule.getTimePeriods()); |
33 | 0 | this.setVersionNumber((long) 0); |
34 | 0 | } catch (Exception e){ |
35 | 0 | e.printStackTrace(); |
36 | 0 | } |
37 | 0 | } |
38 | |
|
39 | |
public MeetingScheduleInfo toDto(){ |
40 | 0 | MeetingScheduleInfo obj = new MeetingScheduleInfo(); |
41 | 0 | obj.setId(getId()); |
42 | 0 | obj.setSpaceId(spaceId); |
43 | 0 | obj.setTimePeriods(timePeriods); |
44 | |
|
45 | 0 | return obj; |
46 | |
} |
47 | |
public String getSpaceId() { |
48 | 0 | return spaceId; |
49 | |
} |
50 | |
|
51 | |
public void setSpaceId(String spaceId) { |
52 | 0 | this.spaceId = spaceId; |
53 | 0 | } |
54 | |
|
55 | |
public String getTimePeriods() { |
56 | 0 | return timePeriods; |
57 | |
} |
58 | |
|
59 | |
public void setTimePeriods(String timePeriods) { |
60 | 0 | this.timePeriods = timePeriods; |
61 | 0 | } |
62 | |
|
63 | |
public LuiEntity getLui() { |
64 | 0 | return lui; |
65 | |
} |
66 | |
|
67 | |
public void setLui(LuiEntity lui) { |
68 | 0 | this.lui = lui; |
69 | 0 | } |
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
} |