@Override public boolean equals(Object obj) { if (obj == null) { return false; } else if (!(obj instanceof HLocaleMemberPk)) { return false; } else { final HLocaleMemberPk other = (HLocaleMemberPk) obj; return new EqualsBuilder() .append(this.person.getId(), other.getPerson().getId()) .append(this.supportedLanguage.getId(), other.getSupportedLanguage().getId()) .isEquals(); } }
@Transient public HPerson getPerson() { return id.getPerson(); }