Annotation Type OptimisticLock


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface OptimisticLock
    Whether or not a change of the annotated property will trigger a entity version increment. If the annotation is not present, the property is involved in the optimistic lock strategy (default).
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      boolean excluded
      Whether the annotated property should be included in optimistic locking determinations for the owner.
    • Element Detail

      • excluded

        boolean excluded
        Whether the annotated property should be included in optimistic locking determinations for the owner.