@PrePersist
  protected void onCreate() {
    createTime = System.currentTimeMillis();
  }
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