| Annotation Type | Description |
|---|---|
| Column |
建表的必备注解
|
| ColumnComment |
字段的备注
|
| ColumnType |
字段的类型
|
| DefaultValue |
字段的默认值
|
| Index |
设置字段索引
|
| IsAutoIncrement |
标志该字段需要设置自增
也可通过注解:com.gitee.sunchenbin.mybatis.actable.annotation.Column的isAutoIncrement属性实现
|
| IsKey |
标志该字段为主键
也可通过注解:com.gitee.sunchenbin.mybatis.actable.annotation.Column的isKey属性实现
|
| IsNativeDefValue |
开启默认值原生模式
原生模式介绍:默认是false表示非原生,此时value只支持字符串形式,会将value值以字符串的形式设置到字段的默认值,例如value="aa" 即sql为 DEFAULT "aa"
如果设置true,此时如果value="CURRENT_TIMESTAMP",即sql为 DEFAULT CURRENT_TIMESTAMP
|
| IsNotNull |
标志该字段不允许为空
也可通过注解:com.gitee.sunchenbin.mybatis.actable.annotation.Column的isNull属性实现
|
| Table |
创建表时的表名
|
| TableCharset |
表字符集
|
| TableComment |
表注释
|
| TableEngine |
表引擎
|
| Unique |
设置字段唯一约束
|
Copyright © 2021. All rights reserved.