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