|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 必需 | 可选 | 详细信息: 元素 |
@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Documented public @interface ColDefine
给出字段的更加精确的数据库类型描述,方便 Dao 创建数据表
可选元素摘要 | |
---|---|
boolean |
auto
描述当前字段是否自增,如果和 @Id 冲突,以 @Id 的优先 |
java.lang.String |
customType
|
boolean |
notNull
|
int |
precision
|
ColType |
type
数据库字段类型 |
boolean |
unsigned
|
int |
width
|
public abstract ColType type
ColType
public abstract int width
public abstract int precision
public abstract boolean notNull
public abstract boolean unsigned
public abstract boolean auto
public abstract java.lang.String customType
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 必需 | 可选 | 详细信息: 元素 |