Annotation Interface SQLSerialization.Column

封闭类:
SQLSerialization

@Retention(RUNTIME) @Target(FIELD) public static @interface SQLSerialization.Column
Markup for SQL column
  • 必需元素概要

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

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    Serialize object to json with GSON, only works in AUTO type
    boolean
    Set this value cannot be null
    boolean
    Mark as primary key, not supports TEXT type
    Column type, default to AUTO
  • 元素详细资料

    • name

      String name
      Column name
    • type

      SQLTypes type
      Column type, default to AUTO
      默认值:
      AUTO
    • notNull

      boolean notNull
      Set this value cannot be null
      默认值:
      false
    • primaryKey

      boolean primaryKey
      Mark as primary key, not supports TEXT type
      默认值:
      false
    • asJson

      boolean asJson
      Serialize object to json with GSON, only works in AUTO type
      默认值:
      false