Package st.orm

Annotation Interface Version


@Target({RECORD_COMPONENT,PARAMETER}) @Retention(RUNTIME) public @interface Version
Marks a record component as a version field to detect optimistic locking conflicts.

The following numerical types are supported:

  • int
  • long
  • java.lang.Integer
  • java.lang.Long
  • java.math.BigInteger
The following types are supported for timestamp fields:
  • java.time.Instant
  • java.util.Date
  • java.util.Calendar
  • java.sql.Timestamp