incrementType=IncrementType.Sequence, sequenceName="SEQ_MENU"
incrementType = IncrementType.Uuid)
public enum IncrementType {
/**
* 32位全局唯一数方式
*/
Uuid,
/**
* 序列方式
*/
Sequence,
/**
* 数据库自动增长
*/
identity,
/**
* 自定义递增方式
*/
customer,
/**
* 无自动递增
*/
NONE
}
public @interface DataField {
/**
* @return 字段的名称,默认为""
*/
String name() default "";
/**
* @return 字段的数据类型,默认为DataType.VARCHAR
*/
int dataType() default DataType.VARCHAR;
/**
* @return 字段中文别名,默认为""
*/
String chinese() default "";
/**
* @return 是否为主键,默认为false
*/
boolean isPrimaryKey() default false;
/**
* @return 是否为索引,默认为false
*/
boolean isIndex() default false ;
/**
* @return 约束规则,如列的长度、日期的格式,默认为""
*/
String constraint() default "" ;
/**
* @return 数值递增的方式,默认不自动递增.值为IncrementType枚举值
*/
IncrementType incrementType() default IncrementType.NONE;
/**
* @return Oracle的序列名称或者为自定义主键的完整类名,默认为""
*/
String sequenceName() default "";
/**
* @return 是否可为空,默认为true
*/
boolean isNullable() default true;
/**
* 是否为默认的排序字段
* @return 是为true,否为false(默认)
*/
boolean orderBy() default false ;
/**
* 如果当前字段为日期,可设置为"#sf_d[now|yyyyMMddHHmmss]" <br>
* 如果当前字段值从session中取值,可设置为"#sf_s[关键名:属性名]"<br>
* 如果当前字段值需要默认一个值,可设置为"#sf_df[默认值]"
*
* @return 默认值或者是默认值模板
*/
String defaultValue() default "";
/**
* 是否为树型表的父记录ID字段
* @return 是为true,否为false(默认)
*/
boolean isParent() default false ;
/**
* 是否为树型表的排序字段
* @return 是为true,否为false(默认)
*/
boolean isSort() default false ;
/**
* 是否为树型表的层次字段
* @return 是为true,否为false(默认)
*/
boolean isLevel() default false ;
/**
* 是否为删除标识位
* <p>1.注意:属性值为0表示未删除,1表示已删除
* @return 是为true,否为false(默认)
*/
boolean isDelete() default false ;
/**
* 是否为树型表的主名称标识位
* @return 是为true,否则为false(默认)
*/
boolean isPrimaryName() default false ;
}