Revision 56746
Added by Michele Artini almost 5 years ago
OtherIdentifierPK.java | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
private static final long serialVersionUID = -3525128185006173748L; |
12 | 12 |
|
13 |
private String docId;
|
|
13 |
private String orgId;
|
|
14 | 14 |
private String otherId; |
15 | 15 |
private String type; |
16 | 16 |
|
17 |
public String getDocId() {
|
|
18 |
return docId;
|
|
17 |
public String getOrgId() {
|
|
18 |
return orgId;
|
|
19 | 19 |
} |
20 | 20 |
|
21 |
public void setDocId(final String docId) {
|
|
22 |
this.docId = docId;
|
|
21 |
public void setOrgId(final String orgId) {
|
|
22 |
this.orgId = orgId;
|
|
23 | 23 |
} |
24 | 24 |
|
25 | 25 |
public String getOtherId() { |
... | ... | |
40 | 40 |
|
41 | 41 |
@Override |
42 | 42 |
public int hashCode() { |
43 |
return Objects.hash(docId, otherId, type);
|
|
43 |
return Objects.hash(orgId, otherId, type);
|
|
44 | 44 |
} |
45 | 45 |
|
46 | 46 |
@Override |
... | ... | |
49 | 49 |
if (obj == null) { return false; } |
50 | 50 |
if (!(obj instanceof OtherIdentifierPK)) { return false; } |
51 | 51 |
final OtherIdentifierPK other = (OtherIdentifierPK) obj; |
52 |
return Objects.equals(docId, other.docId) && Objects.equals(otherId, other.otherId) && Objects.equals(type, other.type);
|
|
52 |
return Objects.equals(orgId, other.orgId) && Objects.equals(otherId, other.otherId) && Objects.equals(type, other.type);
|
|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
@Override |
56 | 56 |
public String toString() { |
57 |
return String.format("OtherIdentifierPK [docId=%s, otherId=%s, type=%s]", docId, otherId, type);
|
|
57 |
return String.format("OtherIdentifierPK [orgId=%s, otherId=%s, type=%s]", orgId, otherId, type);
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
} |
Also available in: Unified diff