Annotation Type CurrentTimestamp

    • 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")
        @Remove
        @Remove 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