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_ATTR") |
24 | |
public class LrrAttributeEntity extends BaseAttributeEntity<LearningResultRecordEntity> { |
25 | |
|
26 | |
@ManyToOne |
27 | |
@JoinColumn(name = "OWNER") |
28 | |
private LearningResultRecordEntity owner; |
29 | |
|
30 | 0 | public LrrAttributeEntity() {} |
31 | |
|
32 | |
public LrrAttributeEntity(String key, String value) { |
33 | 0 | super(key, value); |
34 | 0 | } |
35 | |
|
36 | |
public LrrAttributeEntity(Attribute att) { |
37 | 0 | super(att); |
38 | 0 | } |
39 | |
|
40 | |
@Override |
41 | |
public void setOwner(LearningResultRecordEntity owner) { |
42 | 0 | this.owner = owner; |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public LearningResultRecordEntity getOwner() { |
47 | 0 | return owner; |
48 | |
} |
49 | |
} |