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_WINDOW_ATTR") |
34 | |
public class AppointmentWindowAttributeEntity extends BaseAttributeEntityNew<AppointmentWindowEntity>{ |
35 | |
|
36 | |
@ManyToOne |
37 | |
@JoinColumn(name = "OWNER_ID") |
38 | |
private AppointmentWindowEntity owner; |
39 | |
|
40 | 0 | public AppointmentWindowAttributeEntity() { |
41 | 0 | } |
42 | |
|
43 | |
public AppointmentWindowAttributeEntity(String key, String value) { |
44 | 0 | super(key, value); |
45 | 0 | } |
46 | |
|
47 | |
public AppointmentWindowAttributeEntity(Attribute att, AppointmentWindowEntity owner) { |
48 | 0 | super(att); |
49 | 0 | setOwner(owner); |
50 | 0 | } |
51 | |
|
52 | |
public void setOwner(AppointmentWindowEntity owner) { |
53 | 0 | this.owner = owner; |
54 | |
|
55 | 0 | } |
56 | |
|
57 | |
public AppointmentWindowEntity getOwner() { |
58 | 0 | return owner; |
59 | |
} |
60 | |
} |