Commit 371204d5 authored by yanzg's avatar yanzg

常规BUG的修改

parent d64d9923
...@@ -126,4 +126,22 @@ public class DaoConst { ...@@ -126,4 +126,22 @@ public class DaoConst {
* 查询条件默认代码片段 * 查询条件默认代码片段
*/ */
public static final String[] LAST = new String[]{"{WHERE}", "{GROUP}", "{HAVING}", "{ORDER}", "{LIMIT}"}; public static final String[] LAST = new String[]{"{WHERE}", "{GROUP}", "{HAVING}", "{ORDER}", "{LIMIT}"};
/**
* 普通字段
*/
public static final int FIELD_TYPE_NONE = 0;
/**
* 删除标记
*/
public static final int FIELD_TYPE_REMOVE_FLAG = 1;
/**
* 版本号字段
*/
public static final int FIELD_TYPE_VERSION_FLAG = 2;
/**
* 主键字段
*/
public static final int FIELD_TYPE_PRIMARY = 3;
} }
...@@ -19,4 +19,10 @@ public @interface TableAnnotation { ...@@ -19,4 +19,10 @@ public @interface TableAnnotation {
* @return * @return
*/ */
String value(); String value();
/**
* 字段类型
* @return
*/
int type() default DaoConst.FIELD_TYPE_NONE;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment