org.nutz.dao.entity.annotation
注释类型 ColDefine


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
@Documented
public @interface ColDefine

给出字段的更加精确的数据库类型描述,方便 Dao 创建数据表

作者:
zozoh(zozohtnt@gmail.com)

可选元素摘要
 boolean auto
          描述当前字段是否自增,如果和 @Id 冲突,以 @Id 的优先
 java.lang.String customType
           
 boolean notNull
           
 int precision
           
 ColType type
          数据库字段类型
 boolean unsigned
           
 int width
           
 

type

public abstract ColType type
数据库字段类型

另请参见:
ColType
默认值:
org.nutz.dao.entity.annotation.ColType.VARCHAR

width

public abstract int width
默认值:
0

precision

public abstract int precision
默认值:
2

notNull

public abstract boolean notNull
默认值:
false

unsigned

public abstract boolean unsigned
默认值:
false

auto

public abstract boolean auto
描述当前字段是否自增,如果和 @Id 冲突,以 @Id 的优先

默认值:
false

customType

public abstract java.lang.String customType
默认值:
""