Revision 56746
Added by Michele Artini over 4 years ago
TypePK.java | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
private static final long serialVersionUID = 7320404773442386747L; |
12 | 12 |
|
13 |
private String docId;
|
|
13 |
private String orgId;
|
|
14 | 14 |
|
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 getType() { |
... | ... | |
32 | 32 |
|
33 | 33 |
@Override |
34 | 34 |
public int hashCode() { |
35 |
return Objects.hash(docId, type);
|
|
35 |
return Objects.hash(orgId, type);
|
|
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
@Override |
... | ... | |
41 | 41 |
if (obj == null) { return false; } |
42 | 42 |
if (!(obj instanceof TypePK)) { return false; } |
43 | 43 |
final TypePK other = (TypePK) obj; |
44 |
return Objects.equals(docId, other.docId) && Objects.equals(type, other.type);
|
|
44 |
return Objects.equals(orgId, other.orgId) && Objects.equals(type, other.type);
|
|
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
@Override |
48 | 48 |
public String toString() { |
49 |
return String.format("TypePK [docId=%s, type=%s]", docId, type);
|
|
49 |
return String.format("TypePK [orgId=%s, type=%s]", orgId, type);
|
|
50 | 50 |
} |
51 | 51 |
} |
Also available in: Unified diff