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