1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.core.class1.appointment.model; |
18 | |
|
19 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntityNew; |
20 | |
import org.kuali.student.r2.common.infc.Attribute; |
21 | |
|
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.JoinColumn; |
24 | |
import javax.persistence.ManyToOne; |
25 | |
import javax.persistence.Table; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | @Entity |
33 | |
@Table(name = "KSEN_APPT_SLOT_ATTR") |
34 | |
public class AppointmentSlotAttributeEntity extends BaseAttributeEntityNew<AppointmentSlotEntity> { |
35 | |
@ManyToOne |
36 | |
@JoinColumn(name = "OWNER_ID") |
37 | |
private AppointmentSlotEntity owner; |
38 | |
|
39 | 0 | public AppointmentSlotAttributeEntity() { |
40 | 0 | } |
41 | |
|
42 | |
public AppointmentSlotAttributeEntity(String key, String value) { |
43 | 0 | super(key, value); |
44 | 0 | } |
45 | |
|
46 | |
public AppointmentSlotAttributeEntity(Attribute att, AppointmentSlotEntity owner) { |
47 | 0 | super(att); |
48 | 0 | setOwner(owner); |
49 | 0 | } |
50 | |
|
51 | |
@Override |
52 | |
public void setOwner(AppointmentSlotEntity owner) { |
53 | 0 | this.owner = owner; |
54 | |
|
55 | 0 | } |
56 | |
|
57 | |
@Override |
58 | |
public AppointmentSlotEntity getOwner() { |
59 | 0 | return owner; |
60 | |
} |
61 | |
} |