1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kns.bo;
17
18 import java.io.Serializable;
19
20 import javax.persistence.Column;
21 import javax.persistence.Id;
22
23 import org.apache.commons.lang.builder.HashCodeBuilder;
24
25
26
27
28
29
30
31 public class AdHocRoutePersonId implements Serializable {
32
33 private static final long serialVersionUID = -2030160650786561367L;
34
35 @Column(name="RECIP_TYP_CD")
36 private Integer type;
37 @Id
38 @Column(name="ACTN_RQST_CD")
39 private String actionRequested;
40 @Id
41 @Column(name="ACTN_RQST_RECIP_ID")
42 private String id;
43
44 public AdHocRoutePersonId() {}
45
46 public Integer getType() {
47 return this.type;
48 }
49
50 public String getActionRequested() {
51 return this.actionRequested;
52 }
53
54 public String getId() {
55 return this.id;
56 }
57
58 public boolean equals(Object o) {
59 if (o == this) return true;
60 if (!(o instanceof AdHocRoutePersonId)) return false;
61 if (o == null) return false;
62 AdHocRoutePersonId pk = (AdHocRoutePersonId) o;
63 return getType() != null && getActionRequested() != null && getId() != null && getType().equals(pk.getType()) && getActionRequested().equals(pk.getActionRequested()) && getId().equals(pk.getId());
64 }
65
66 public int hashCode() {
67 return new HashCodeBuilder().append(type).append(actionRequested).append(id).toHashCode();
68 }
69
70 }
71