批注类型 Column


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Column
实体属性注解,列名称
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    自动驼峰转换,转换后的名称将会映射到数据库的列
    具体转换细节:NamingCase.toUnderlineCase(CharSequence)
    数据库的列名称
  • 元素详细资料

    • value

      String value
      数据库的列名称
      默认值:
      ""
    • toUnderlineCase

      boolean toUnderlineCase
      自动驼峰转换,转换后的名称将会映射到数据库的列
      具体转换细节:NamingCase.toUnderlineCase(CharSequence)
       
           createTime --> create_time
           UpdateTime --> update_time
           is_id --> is_id
           Is_Index --> is_index
       
       
      从以下版本开始:
      1.1.0
      默认值:
      false