package eu.dnetlib.openaire.community.db.model; import java.io.Serializable; import java.util.Objects; public class CommunitySupportOrgPK implements Serializable { private static final long serialVersionUID = 1L; private String community; private String orgName; public String getCommunity() { return community; } public void setCommunity(final String community) { this.community = community; } public String getOrgName() { return orgName; } public void setOrgName(final String orgName) { this.orgName = orgName; } @Override public int hashCode() { return Objects.hash(community, orgName); } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof CommunitySupportOrgPK)) { return false; } final CommunitySupportOrgPK other = (CommunitySupportOrgPK) obj; return Objects.equals(community, other.community) && Objects.equals(orgName, other.orgName); } @Override public String toString() { return String.format("CommunitySupportOrgPK [community=%s, orgName=%s]", community, orgName); } }