Annotation Interface Source


@Deprecated(since="6.2") @Remove @Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface Source
Deprecated.
use CurrentTimestamp instead
Indicates the source of timestamps for an entity version property of type Timestamp:

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.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
    The source of timestamps.
  • Element Details