批注类型 InsertFillTime


@Documented @Retention(RUNTIME) @Target(FIELD) @FillTime public @interface InsertFillTime
SQL插入的时候,自动填充当前时间
作者:
don
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    如果字段类型为String,需要制定字符串格式
    boolean
    若对象上存在值,是否覆盖
  • 元素详细资料

    • format

      @AliasFor(annotation=FillTime.class, attribute="format") String format
      如果字段类型为String,需要制定字符串格式
      默认值:
      "yyyy-MM-dd HH:mm:ss"
    • override

      @AliasFor(annotation=FillTime.class, attribute="override") boolean override
      若对象上存在值,是否覆盖
      默认值:
      true