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_ATPATP_RELTN_ATTR") |
13 | |
public class AtpAtpRelationAttributeEntity extends BaseAttributeEntityNew<AtpAtpRelationEntity> { |
14 | |
|
15 | |
@ManyToOne |
16 | |
@JoinColumn(name = "OWNER_ID") |
17 | |
private AtpAtpRelationEntity owner; |
18 | |
|
19 | 0 | public AtpAtpRelationAttributeEntity() {} |
20 | |
|
21 | |
public AtpAtpRelationAttributeEntity(Attribute att) { |
22 | 0 | super(att); |
23 | 0 | } |
24 | |
|
25 | |
public AtpAtpRelationAttributeEntity(String key, String value) { |
26 | 0 | super(key, value); |
27 | 0 | } |
28 | |
|
29 | |
@Override |
30 | |
public void setOwner(AtpAtpRelationEntity owner) { |
31 | 0 | this.owner = owner; |
32 | |
|
33 | 0 | } |
34 | |
|
35 | |
@Override |
36 | |
public AtpAtpRelationEntity getOwner() { |
37 | 0 | return owner; |
38 | |
} |
39 | |
} |