Project

General

Profile

« Previous | Next » 

Revision 56746

View differences:

AcronymPK.java
10 10
	 */
11 11
	private static final long serialVersionUID = -7771532658881429064L;
12 12

  
13
	private String docId;
13
	private String orgId;
14 14

  
15 15
	private String acronym;
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 getAcronym() {
......
32 32

  
33 33
	@Override
34 34
	public int hashCode() {
35
		return Objects.hash(acronym, docId);
35
		return Objects.hash(acronym, orgId);
36 36
	}
37 37

  
38 38
	@Override
......
41 41
		if (obj == null) { return false; }
42 42
		if (!(obj instanceof AcronymPK)) { return false; }
43 43
		final AcronymPK other = (AcronymPK) obj;
44
		return Objects.equals(acronym, other.acronym) && Objects.equals(docId, other.docId);
44
		return Objects.equals(acronym, other.acronym) && Objects.equals(orgId, other.orgId);
45 45
	}
46 46

  
47 47
	@Override
48 48
	public String toString() {
49
		return String.format("AcronymPK [docId=%s, acronym=%s]", docId, acronym);
49
		return String.format("AcronymPK [orgId=%s, acronym=%s]", orgId, acronym);
50 50
	}
51 51
}

Also available in: Unified diff