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