@Override
  public int hashCode() {
    HashCodeBuilder hashCodeBuilder = new HashCodeBuilder();
    hashCodeBuilder.append(userId);
    hashCodeBuilder.append(userName);
    hashCodeBuilder.append(displayName);
    hashCodeBuilder.append(localUsername);
    hashCodeBuilder.append(consecutiveFailures);
    hashCodeBuilder.append(active);
    hashCodeBuilder.append(createTime);
    hashCodeBuilder.append(version);
    return hashCodeBuilder.toHashCode();
  }
Ensure the create time is set properly when the record is created.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UserEntity.java