1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.engine.node;
17
18 import javax.persistence.*;
19
20
21
22
23
24
25 @Entity
26 @Table(name="KREW_RTE_BRCH_ST_T")
27 @AttributeOverride(name="stateId", column=@Column(name="RTE_BRCH_ST_ID"))
28 public class BranchState extends State {
29
30
31
32
33 public static final String VARIABLE_PREFIX = "var::";
34
35 private static final long serialVersionUID = -7642477013444817952L;
36
37 @ManyToOne(fetch=FetchType.EAGER)
38 @JoinColumn(name="RTE_BRCH_ID")
39 private Branch branch;
40 @Version
41 @Column(name="VER_NBR")
42 private Integer lockVerNbr;
43
44 public BranchState() {}
45
46 public BranchState(String key, String value) {
47 super(key, value);
48 }
49
50 public Branch getBranch() {
51 return branch;
52 }
53
54 public void setBranch(Branch branch) {
55 this.branch = branch;
56 }
57
58 public String getBranchStateId() {
59 return getStateId();
60 }
61
62 public void setBranchStateId(String branchStateId) {
63 setStateId(branchStateId);
64 }
65
66 public Integer getLockVerNbr() {
67 return lockVerNbr;
68 }
69
70 public void setLockVerNbr(Integer lockVerNbr) {
71 this.lockVerNbr = lockVerNbr;
72 }
73 }
74