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