@Override
  public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(userAuthenticationId);
    hashCodeBuilder.append(authenticationType);
    hashCodeBuilder.append(authenticationKey);
    hashCodeBuilder.append(createTime);
    hashCodeBuilder.append(updateTime);
    return hashCodeBuilder.toHashCode();
  }
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