注释接口 LogicalDeleted


@Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface LogicalDeleted
Logical deleted flag.

If property is decorated by this @annotation, its initial value is `restoredValue` so that developers do not need to use `DraftInterceptor` to assign an initial value to it

  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
     
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    If the decorated property is boolean or time, `restoredValue` can be optional.
    boolean
     
  • 元素详细资料

    • value

      String value
      返回:
      A value indicating that the current entity is logical deleted, it can be
      • true
      • false
      • integer
      • Constant name of the enum returned by the current decorated property
      • null
      • now
    • restoredValue

      String restoredValue

      If the decorated property is boolean or time, `restoredValue` can be optional.

      If it is specified, it and `value` must be different.

      返回:
      A value should be automatically set when the current entity is restored, it can be
      • true
      • false
      • integer
      • Constant name of the enum returned by the current decorated property
      • null
      • now
      默认值:
      ""
    • useMultiViewCache

      boolean useMultiViewCache
      默认值:
      false