Annotation Type OptimisticLock


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface OptimisticLock
    Specifies whether updating the annotated attribute should trigger an increment to the version of the entity instance.

    If this annotation is not present, updating an attribute does cause the version to be incremented.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      boolean excluded
      true if changing the annotated attribute should not cause the version to be incremented.
    • Element Detail

      • excluded

        boolean excluded
        true if changing the annotated attribute should not cause the version to be incremented.