1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.useroptions;
17
18 import javax.persistence.Cacheable;
19 import javax.persistence.Column;
20 import javax.persistence.Entity;
21 import javax.persistence.Id;
22 import javax.persistence.IdClass;
23 import javax.persistence.Table;
24 import javax.persistence.Version;
25
26 import org.kuali.rice.kew.api.preferences.Preferences;
27
28
29
30
31
32
33
34 @IdClass(UserOptionsId.class)
35 @Entity
36 @Table(name="KREW_USR_OPTN_T")
37 @Cacheable(false)
38 public class UserOptions implements Comparable<UserOptions> {
39
40 @Id
41 @Column(name="PRNCPL_ID")
42 private String workflowId;
43
44 @Id
45 @Column(name="PRSN_OPTN_ID")
46 private String optionId;
47
48 @Column(name="VAL")
49 private String optionVal;
50
51 @Version
52 @Column(name="VER_NBR")
53 private Integer lockVerNbr;
54
55 public Integer getLockVerNbr() {
56 return lockVerNbr;
57 }
58
59 public String getOptionId() {
60 return optionId;
61 }
62
63 public String getOptionVal() {
64 return optionVal;
65 }
66
67 public String getWorkflowId() {
68 return workflowId;
69 }
70
71 public void setLockVerNbr(Integer integer) {
72 lockVerNbr = integer;
73 }
74
75 public void setOptionId(String string) {
76 optionId = string;
77 }
78
79 public void setOptionVal(String string) {
80 optionVal = string;
81 }
82
83 public void setWorkflowId(String string) {
84 workflowId = string;
85 }
86
87
88
89
90
91
92
93
94 @Override
95 public int compareTo(UserOptions o) {
96 return getOptionId().compareTo(o.getOptionId());
97 }
98
99 }
100