source = VM indicates that the virtual machine
current instant
is used, and
source = DB indicates that the database
current_timestamp function should be used.
By default, the timestamp is generated by the database, which requires an extra round trip to the database to fetch the generated value.
This annotation may be used in combination with the JPA-defined
jakarta. annotation.
The annotated property may be of any one of the following types:
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java.,
java., or
java..
UpdateTimestamp, CreationTimestamp, CurrentTimestampGeneration
| Modifier and Type | Method and Description |
|---|---|
| public EventType[] | |
| public SourceType | |
| public @Remove GenerationTiming | timing()
Deprecated
since 6.2. This was introduced in error
Determines when the timestamp is generated.
|
| event | back to summary |
|---|---|
| public EventType[] event() Determines when the timestamp is generated. But default, it is updated
when any SQL | |
| source | back to summary |
|---|---|
| public SourceType source() Specifies how the timestamp is generated. By default, it is generated
by the database, and fetched using a subsequent | |
| timing | back to summary |
|---|---|
| public @Remove GenerationTiming timing()
Deprecated since 6.2. This was introduced in error Determines when the timestamp is generated. But default, it is updated
when any SQL
| |