java.sql.Timestamp :
SourceType#VM indicates that the virtual machine
current instance
is used, and
SourceType#DB indicates that the database
current_timestamp function should be used.
For example, the following timestamp is generated by the database:
@Version @Source(DB) private LocalDateTime version;
This annotation is always used in conjunction with the JPA
@Version annotation.
jakarta.persistence.Version
| Modifier and Type | Method and Description |
|---|---|
| public SourceType |
| value | back to summary |
|---|---|
| public SourceType value() The source of timestamps. By default, the virtual machine is the source. | |