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