Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
371204d5
Commit
371204d5
authored
Jun 10, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常规BUG的修改
parent
d64d9923
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+18
-0
TableAnnotation.java
...db/src/main/java/com/yanzuoguang/dao/TableAnnotation.java
+6
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
371204d5
...
@@ -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
;
}
}
yzg-util-db/src/main/java/com/yanzuoguang/dao/TableAnnotation.java
View file @
371204d5
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment