注释类型 MyColumn
-
@Retention(RUNTIME) public @interface MyColumn
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 booleanautoIncrementalter table xxx_table_name modify xxx_column_name int(11) not null auto_increment, add key(xxx_column_name);booleancreateIndex已过时。StringdefaultValuebooleanindexALTER TABLE `table_name` ADD INDEX index_name ( `column` )booleankeyStringnamebooleanreadonlyStringtype字段类型Class<?>typeHandlerbooleanuniqueIndexALTER TABLE `table_name` ADD unique index_name ( `column` )booleanvirtual
-
-
-
元素详细资料
-
type
String type
字段类型- 返回:
- 可以是数据库支持的各位类型,比如: varchar(100),Integer...
- 默认值:
- ""
-
-
-
name
String name
- 返回:
- 字段名
- 默认值:
- ""
-
-
-
defaultValue
String defaultValue
- 返回:
- 默认值
- 默认值:
- ""
-
-
-
createIndex
@Deprecated boolean createIndex
已过时。instead with index()ALTER TABLE `table_name` ADD INDEX index_name ( `column` )
- 返回:
- 创建索引
- 默认值:
- false
-
-
-
typeHandler
Class<?> typeHandler
- 返回:
- 充许自定义Handler
- 默认值:
- org.apache.ibatis.type.StringTypeHandler.class
-
-