@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    } else if (o == null || getClass() != o.getClass()) {
      return false;
    } else {
      UserAuthenticationEntity that = (UserAuthenticationEntity) o;

      EqualsBuilder equalsBuilder = new EqualsBuilder();
      equalsBuilder.append(userAuthenticationId, that.userAuthenticationId);
      equalsBuilder.append(authenticationType, that.authenticationType);
      equalsBuilder.append(authenticationKey, that.authenticationKey);
      equalsBuilder.append(createTime, that.createTime);
      equalsBuilder.append(updateTime, that.updateTime);
      return equalsBuilder.isEquals();
    }
  }
Ensure the update time is set properly when the record is updated.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UserAuthenticationEntity.java