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