1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.engine.node; |
18 | |
|
19 | |
import javax.persistence.*; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
@Entity |
27 | |
@Table(name="KREW_RTE_NODE_INSTN_ST_T") |
28 | |
@AttributeOverride(name="stateId", column=@Column(name="RTE_NODE_INSTN_ST_ID")) |
29 | |
@NamedQueries({ |
30 | |
@NamedQuery(name="NodeState.FindNodeState", query="select n from NodeState as n where n.nodeInstance.routeNodeInstanceId = :routeNodeInstanceId and n.key = :key"), |
31 | |
@NamedQuery(name="NodeState.FindNodeStateById", query="select n from NodeState as n where n.stateId = :nodeStateId") |
32 | |
}) |
33 | |
public class NodeState extends State { |
34 | |
|
35 | |
private static final long serialVersionUID = -4382379569851955918L; |
36 | |
|
37 | |
@ManyToOne(fetch=FetchType.EAGER) |
38 | |
@JoinColumn(name="RTE_NODE_INSTN_ID") |
39 | |
private RouteNodeInstance nodeInstance; |
40 | |
@Version |
41 | |
@Column(name="VER_NBR") |
42 | |
private Integer lockVerNbr; |
43 | |
|
44 | 0 | public NodeState() {} |
45 | |
|
46 | |
public NodeState(String key, String value) { |
47 | 0 | super(key, value); |
48 | 0 | } |
49 | |
|
50 | |
|
51 | |
public RouteNodeInstance getNodeInstance() { |
52 | 0 | return nodeInstance; |
53 | |
} |
54 | |
public void setNodeInstance(RouteNodeInstance nodeInstance) { |
55 | 0 | this.nodeInstance = nodeInstance; |
56 | 0 | } |
57 | |
|
58 | |
public Long getNodeStateId() { |
59 | 0 | return getStateId(); |
60 | |
} |
61 | |
|
62 | |
public void setNodeStateId(Long nodeStateId) { |
63 | 0 | setStateId(nodeStateId); |
64 | 0 | } |
65 | |
|
66 | |
public Integer getLockVerNbr() { |
67 | 0 | return lockVerNbr; |
68 | |
} |
69 | |
|
70 | |
public void setLockVerNbr(Integer lockVerNbr) { |
71 | 0 | this.lockVerNbr = lockVerNbr; |
72 | 0 | } |
73 | |
} |