注释类型 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.
    作者:
    Steve Ebersole
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      OptimisticLockType type
      Defines the style of optimistic locking for the entity.
    • 元素详细资料

      • type

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