1 | |
package org.kuali.student.enrollment.class1.roster.model; |
2 | |
|
3 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntity; |
4 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntityNew; |
5 | |
import org.kuali.student.r2.common.infc.Attribute; |
6 | |
|
7 | |
import javax.persistence.Entity; |
8 | |
import javax.persistence.JoinColumn; |
9 | |
import javax.persistence.ManyToOne; |
10 | |
import javax.persistence.Table; |
11 | |
|
12 | 0 | @Entity |
13 | |
@Table(name = "KSEN_LPR_ROSTER_ENTRY_ATTR") |
14 | |
public class LprRosterEntryAttributeEntity extends BaseAttributeEntityNew<LprRosterEntryEntity> { |
15 | |
|
16 | |
@ManyToOne |
17 | |
@JoinColumn(name = "OWNER") |
18 | |
private LprRosterEntryEntity owner; |
19 | |
|
20 | 0 | public LprRosterEntryAttributeEntity() {} |
21 | |
|
22 | |
public LprRosterEntryAttributeEntity(String key, String value) { |
23 | 0 | super(key, value); |
24 | 0 | } |
25 | |
|
26 | |
public LprRosterEntryAttributeEntity(Attribute att) { |
27 | 0 | super(att); |
28 | 0 | } |
29 | |
|
30 | |
@Override |
31 | |
public void setOwner(LprRosterEntryEntity owner) { |
32 | 0 | this.owner = owner; |
33 | 0 | } |
34 | |
|
35 | |
@Override |
36 | |
public LprRosterEntryEntity getOwner() { |
37 | 0 | return owner; |
38 | |
} |
39 | |
} |