1 | |
package org.kuali.student.enrollment.class1.hold.model; |
2 | |
|
3 | |
import javax.persistence.Entity; |
4 | |
import javax.persistence.JoinColumn; |
5 | |
import javax.persistence.ManyToOne; |
6 | |
import javax.persistence.Table; |
7 | |
|
8 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntity; |
9 | |
import org.kuali.student.r2.common.infc.Attribute; |
10 | |
|
11 | 0 | @Entity |
12 | |
@Table(name = "KSEN_HOLD_ATTR") |
13 | |
public class HoldAttributeEntity extends BaseAttributeEntity<HoldEntity> { |
14 | |
|
15 | |
@ManyToOne |
16 | |
@JoinColumn(name = "OWNER_ID") |
17 | |
private HoldEntity owner; |
18 | |
|
19 | 0 | public HoldAttributeEntity () { |
20 | |
|
21 | 0 | } |
22 | |
|
23 | |
public HoldAttributeEntity(String key, String value) { |
24 | 0 | super(key, value); |
25 | 0 | } |
26 | |
|
27 | |
public HoldAttributeEntity(Attribute att) { |
28 | 0 | super(att); |
29 | 0 | } |
30 | |
|
31 | |
@Override |
32 | |
public void setOwner(HoldEntity owner) { |
33 | 0 | this.owner = owner; |
34 | 0 | } |
35 | |
|
36 | |
@Override |
37 | |
public HoldEntity getOwner() { |
38 | 0 | return owner; |
39 | |
} |
40 | |
} |