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 java.io.Serializable;
19
20 import javax.persistence.Column;
21
22
23
24
25
26
27
28 public class UserOptionsId implements Serializable {
29
30 private static final long serialVersionUID = -982957447172014416L;
31
32 @Column(name="PRSN_OPTN_ID")
33 private String optionId;
34 @Column(name="PRNCPL_ID")
35 private String workflowId;
36
37 public UserOptionsId() {}
38
39 public String getOptionId() { return optionId; }
40
41 public String getWorkflowId() { return workflowId; }
42
43 public boolean equals(Object o) {
44 if (o == this) return true;
45 if (!(o instanceof UserOptionsId)) return false;
46 if (o == null) return false;
47 UserOptionsId pk = (UserOptionsId) o;
48 return getOptionId() != null && getWorkflowId() != null && getOptionId().equals(pk.getOptionId()) && getWorkflowId().equals(pk.getWorkflowId());
49 }
50
51 public int hashCode() {
52 return (getOptionId() + getWorkflowId()).hashCode();
53 }
54
55 }
56