注释接口 Default


@Retention(RUNTIME) @Target(allowedTargets=PROPERTY) @Target(METHOD) public @interface Default
This annotation can be used to decorates scalar properties except `@Id`, `@Key` and `@Version`, to specify default value for insert operation.
  • The default value only affects insert operation, update operation will never be affected (Unloaded properties still mean not updating)
  • When insert an object, if unloaded property is not filled by `DraftInterceptor`, this default value will be used
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
     
  • 元素详细资料