Project

General

Profile

1 56672 michele.ar
package eu.dnetlib.organizations.model;
2
3
import java.io.Serializable;
4
import java.util.Objects;
5
6
public class TypePK implements Serializable {
7
8
	/**
9
	 *
10
	 */
11
	private static final long serialVersionUID = 7320404773442386747L;
12
13 56746 michele.ar
	private String orgId;
14 56672 michele.ar
15
	private String type;
16
17 56746 michele.ar
	public String getOrgId() {
18
		return orgId;
19 56672 michele.ar
	}
20
21 56746 michele.ar
	public void setOrgId(final String orgId) {
22
		this.orgId = orgId;
23 56672 michele.ar
	}
24
25
	public String getType() {
26
		return type;
27
	}
28
29
	public void setType(final String type) {
30
		this.type = type;
31
	}
32
33
	@Override
34
	public int hashCode() {
35 56746 michele.ar
		return Objects.hash(orgId, type);
36 56672 michele.ar
	}
37
38
	@Override
39
	public boolean equals(final Object obj) {
40
		if (this == obj) { return true; }
41
		if (obj == null) { return false; }
42
		if (!(obj instanceof TypePK)) { return false; }
43
		final TypePK other = (TypePK) obj;
44 56746 michele.ar
		return Objects.equals(orgId, other.orgId) && Objects.equals(type, other.type);
45 56672 michele.ar
	}
46
47
	@Override
48
	public String toString() {
49 56746 michele.ar
		return String.format("TypePK [orgId=%s, type=%s]", orgId, type);
50 56672 michele.ar
	}
51
}