@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Documented public @interface MColDefine
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
auto
描述当前字段是否自增,如果和 @Id 冲突,以 @Id 的优先
|
String |
customType
自定义数据库字段类型, 例如写 customType="image" 等, 然后请务必再设置type属性!!
|
boolean |
insert |
boolean |
notNull
是否为非空,默认为false
|
int |
precision
精度,小数点后多少位,默认是2
|
MColType |
type
数据库字段类型
|
boolean |
unsigned |
boolean |
update |
int |
width
宽度/长度, 例如定义字符串长度为1024 就写 width=1024
|
public abstract String customType
Copyright © 2022. All rights reserved.