1 | |
package org.kuali.student.r2.core.class1.atp.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.BaseAttributeEntityNew; |
9 | |
import org.kuali.student.r2.common.infc.Attribute; |
10 | |
|
11 | 0 | @Entity |
12 | |
@Table(name = "KSEN_MSTONE_ATTR") |
13 | |
public class MilestoneAttributeEntity extends BaseAttributeEntityNew<MilestoneEntity> { |
14 | |
|
15 | |
@ManyToOne |
16 | |
@JoinColumn(name = "OWNER_ID") |
17 | |
private MilestoneEntity owner; |
18 | |
|
19 | 0 | public MilestoneAttributeEntity() {} |
20 | |
|
21 | |
public MilestoneAttributeEntity(String key, String value) { |
22 | 0 | super(key, value); |
23 | 0 | } |
24 | |
|
25 | |
public MilestoneAttributeEntity(Attribute att, MilestoneEntity owner) { |
26 | 0 | super(att); |
27 | 0 | setOwner(owner); |
28 | 0 | } |
29 | |
|
30 | |
@Override |
31 | |
public void setOwner(MilestoneEntity owner) { |
32 | 0 | this.owner = owner; |
33 | |
|
34 | 0 | } |
35 | |
|
36 | |
@Override |
37 | |
public MilestoneEntity getOwner() { |
38 | 0 | return owner; |
39 | |
} |
40 | |
} |