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