Annotation Type CurrentTimestamp

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      EventType[] event
      Determines when the timestamp is generated.
      SourceType source
      Specifies how the timestamp is generated.
      GenerationTiming timing
      Deprecated.
      This was introduced in error
    • Element Detail

      • event

        EventType[] event
        Determines when the timestamp is generated. But default, it is updated when any SQL insert or update statement is executed. If it should be generated just once, on the initial SQL insert, explicitly specify event = INSERT.
        Default:
        {org.hibernate.generator.EventType.INSERT, org.hibernate.generator.EventType.UPDATE}
      • timing

        @Deprecated(since="6.2")
        GenerationTiming timing
        Deprecated.
        This was introduced in error
        Determines when the timestamp is generated. But default, it is updated when any SQL insert or update statement is executed. If it should be generated just once, on the initial SQL insert, explicitly specify timing = INSERT.
        Default:
        org.hibernate.tuple.GenerationTiming.ALWAYS
      • source

        SourceType source
        Specifies how the timestamp is generated. By default, it is generated by the database, and fetched using a subsequent select statement.
        Default:
        org.hibernate.annotations.SourceType.DB