@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface Column
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_VALUE |
| 限定符和类型 | 可选元素和说明 |
|---|---|
String |
additional |
String |
comment
列注释
|
String |
defaultValue |
String |
definition |
Class<? extends IdGenerator> |
idGenerator |
JDBCType |
jdbcType |
int |
length
长度,仅字符串或小数时生效,int/long/boolean无效,默认255
|
String |
name
字段名,默认会根据驼峰转换全小写字母下划线分隔的字段名
|
boolean |
nullable
是否允许空值
|
int |
precision
精度,仅小数时生效
|
PrimaryKey |
primaryKey |
boolean |
unique |
boolean |
unsigned |
public static final String DEFAULT_VALUE
public abstract String name
public abstract String comment
public abstract JDBCType jdbcType
public abstract String defaultValue
public abstract PrimaryKey primaryKey
public abstract Class<? extends IdGenerator> idGenerator
public abstract String additional
public abstract String definition
Copyright © 2018–2023. All rights reserved.