Exemplo n.º 1
0
 @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();
   }
 }
Exemplo n.º 2
0
 @Transient
 public HLocale getSupportedLanguage() {
   return id.getSupportedLanguage();
 }