Annotation Type OptimisticLock


@Target(METHOD)
@Retention(RUNTIME)
public @interface OptimisticLock
Annotation to specify whether a change of the annotated attribute will cause optimistic locking.
Since:
1.2.0
Author:
Christian Beikov
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    boolean exclude
    Whether a change of the annotated attribute should cause an optimistic lock.
  • Element Details

    • exclude

      boolean exclude
      Whether a change of the annotated attribute should cause an optimistic lock. When true, a change will NOT cause an optimistic lock.
      Returns:
      false if an attribute change should cause optimistic locking, true otherwise
      Default:
      false