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