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
22 import org.apache.commons.lang.builder.HashCodeBuilder;
23
24
25
26
27
28
29
30 public class AdHocRouteRecipientId implements Serializable {
31
32 private static final long serialVersionUID = 8497301760757033542L;
33
34 @Column(name="RECIP_TYP_CD")
35 protected Integer type;
36 @Column(name="ACTN_RQST_CD")
37 protected String actionRequested;
38 @Column(name="ACTN_RQST_RECIP_ID")
39 protected String id;
40
41 public AdHocRouteRecipientId() {}
42
43 public Integer getType() { return type; }
44
45 public String getActionRequested() { return actionRequested; }
46
47 public String getId() { return id; }
48
49 public boolean equals(Object o) {
50 if (o == this) return true;
51 if (!(o instanceof AdHocRouteRecipientId)) return false;
52 if (o == null) return false;
53 AdHocRouteRecipientId pk = (AdHocRouteRecipientId) o;
54 return getType() != null && getActionRequested() != null && getId() != null && getType().equals(pk.getType()) && getActionRequested().equals(pk.getActionRequested()) && getId().equals(pk.getId());
55 }
56
57 public int hashCode() {
58 return new HashCodeBuilder().append(type).append(actionRequested).append(id).toHashCode();
59 }
60
61 }
62