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