Annotation Type OptimisticLocking


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface OptimisticLocking
    Used to define the style of optimistic locking to be applied to an entity. In a hierarchy, only valid on the root entity.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      OptimisticLockType type
      Defines the style of optimistic locking for the entity.
    • Element Detail

      • type

        OptimisticLockType type
        Defines the style of optimistic locking for the entity.
        Default:
        org.hibernate.annotations.OptimisticLockType.VERSION