1 | |
package org.kuali.student.r2.core.class1.process.model; |
2 | |
|
3 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntityNew; |
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_PROCESS_ATTR") |
13 | |
public class ProcessAttributeEntity extends BaseAttributeEntityNew<ProcessEntity> { |
14 | |
|
15 | |
@ManyToOne |
16 | |
@JoinColumn(name = "OWNER") |
17 | |
private ProcessEntity owner; |
18 | |
|
19 | 0 | public ProcessAttributeEntity () {} |
20 | |
|
21 | |
public ProcessAttributeEntity(String key, String value) { |
22 | 0 | super(key, value); |
23 | 0 | } |
24 | |
|
25 | |
public ProcessAttributeEntity(Attribute att) { |
26 | 0 | super(att); |
27 | 0 | } |
28 | |
|
29 | |
public ProcessAttributeEntity(Attribute att, ProcessEntity owner) { |
30 | 0 | super(att); |
31 | 0 | setOwner(owner); |
32 | 0 | } |
33 | |
|
34 | |
@Override |
35 | |
public void setOwner(ProcessEntity owner) { |
36 | 0 | this.owner = owner; |
37 | 0 | } |
38 | |
|
39 | |
@Override |
40 | |
public ProcessEntity getOwner() { |
41 | 0 | return owner; |
42 | |
} |
43 | |
} |