@PrePersist
  protected void onCreate() {
    final long now = System.currentTimeMillis();
    createTime = now;
    updateTime = now;
  }
Ensure the create time and update time are set properly when the record is created.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UserAuthenticationEntity.java