@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 HLocale getSupportedLanguage() { return id.getSupportedLanguage(); }
@Transient public HPerson getPerson() { return id.getPerson(); }
public HLocaleMember(HPerson person, HLocale supportedLanguage, boolean isCoordinator) { id.setPerson(person); id.setSupportedLanguage(supportedLanguage); setCoordinator(isCoordinator); }