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.BaseAttributeEntity; |
9 | |
import org.kuali.student.r2.common.infc.Attribute; |
10 | |
|
11 | 0 | @Entity |
12 | |
@Table(name = "KSEN_ATPMSTONE_RELTN_ATTR") |
13 | |
public class AtpMilestoneRelationAttributeEntity extends BaseAttributeEntity<AtpMilestoneRelationEntity> { |
14 | |
|
15 | |
@ManyToOne |
16 | |
@JoinColumn(name = "OWNER") |
17 | |
private AtpMilestoneRelationEntity owner; |
18 | |
|
19 | 0 | public AtpMilestoneRelationAttributeEntity() {} |
20 | |
|
21 | |
public AtpMilestoneRelationAttributeEntity(Attribute attribute) { |
22 | 0 | super(attribute); |
23 | 0 | } |
24 | |
|
25 | |
public AtpMilestoneRelationAttributeEntity(String name, String value) { |
26 | 0 | super(name, value); |
27 | 0 | } |
28 | |
|
29 | |
@Override |
30 | |
public void setOwner(AtpMilestoneRelationEntity owner) { |
31 | 0 | this.owner = owner; |
32 | 0 | } |
33 | |
|
34 | |
@Override |
35 | |
public AtpMilestoneRelationEntity getOwner() { |
36 | 0 | return owner; |
37 | |
} |
38 | |
} |