final ChangeableEmailAddress otherEmail = (ChangeableEmailAddress) object;
- if (!Objects.equals(this.getEmailAddress(), otherEmail.getEmailAddress())) {
+ if (!Objects.equals(this.getEmailChangeId(), otherEmail.getEmailChangeId())) {
+ return false;
+ } else if (!Objects.equals(this.getEmailAddress(), otherEmail.getEmailAddress())) {
+ return false;
+ } else if (!Objects.equals(this.getEmailChangeUser(), otherEmail.getEmailChangeUser())) {
return false;
}
- return Objects.equals(this.getEmailChangeUser(), otherEmail.getEmailChangeUser());
+ return true;
}
@Override
@Override
public int hashCode () {
int hash = 5;
+
+ hash = 71 * hash + Objects.hashCode(this.getEmailChangeId());
hash = 71 * hash + Objects.hashCode(this.getEmailAddress());
hash = 71 * hash + Objects.hashCode(this.getEmailChangeUser());
+
return hash;
}
final PasswordHistory other = (PasswordHistory) object;
- if (!Objects.equals(this.getUserPasswordHistoryPasswordHash(), other.getUserPasswordHistoryPasswordHash())) {
+ if (!Objects.equals(this.getUserPasswordHistoryId(), other.getUserPasswordHistoryId())) {
return false;
- } else if (!Objects.equals(this.getUserPasswordHistoryId(), other.getUserPasswordHistoryId())) {
+ } else if (!Objects.equals(this.getUserPasswordHistoryPasswordHash(), other.getUserPasswordHistoryPasswordHash())) {
return false;
} else if (!Objects.equals(this.getUserPasswordHistoryUser(), other.getUserPasswordHistoryUser())) {
return false;