Annotation Interface Column


@Retention(RUNTIME) @Target(FIELD) public @interface Column
Bean中的列信息注解
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    是否存在列
    boolean
    字段为空时是否插入
    boolean
    字段为空时是否修改
    boolean
    插入时是否插入
    boolean
    是否查询
    Class<? extends org.apache.ibatis.type.TypeHandler<?>>
    类型转换
    boolean
    修改时是否更新
    列名称
  • 元素详细资料

    • value

      String value
      列名称
      返回:
      列名称
      默认值:
      ""
    • exists

      boolean exists
      是否存在列
      返回:
      Boolean true: 表中存在此列 false:不是表中的列
      默认值:
      true
    • select

      boolean select
      是否查询
      返回:
      Boolean
      默认值:
      true
    • insert

      boolean insert
      插入时是否插入
      返回:
      Boolean
      默认值:
      true
    • update

      boolean update
      修改时是否更新
      返回:
      Boolean
      默认值:
      true
    • ifNullInsert

      boolean ifNullInsert
      字段为空时是否插入
      返回:
      Boolean
      默认值:
      false
    • ifNullUpdate

      boolean ifNullUpdate
      字段为空时是否修改
      返回:
      Boolean
      默认值:
      false
    • typeHandler

      Class<? extends org.apache.ibatis.type.TypeHandler<?>> typeHandler
      类型转换
      返回:
      TypeHandler 类型处理器
      默认值:
      org.apache.ibatis.type.UnknownTypeHandler.class