@Target(value=FIELD) @Retention(value=RUNTIME) @Documented public @interface Column
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
comment
数据表字段备注
|
int |
decimalLength
小数点长度,默认是2
|
String |
defaultValue
默认值,默认为null
|
boolean |
isAutoIncrement
是否自动递增,默认false 只有主键才能使用
|
boolean |
isKey
是否是主键,默认false
|
boolean |
isNull
是否为可以为null,true是可以,false是不可以,默认为true
|
int |
length
字段长度,默认是255
|
String |
name
字段名
|
String |
type
字段类型
|
public abstract String name
public abstract String type
public abstract boolean isNull
public abstract boolean isAutoIncrement
public abstract String defaultValue
public abstract String comment
Copyright © 2020. All rights reserved.