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