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
a5944121
Commit
a5944121
authored
Oct 11, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
3318939e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
0 deletions
+78
-0
SqlFieldAnnotation.java
...src/main/java/com/yanzuoguang/dao/SqlFieldAnnotation.java
+78
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/SqlFieldAnnotation.java
0 → 100755
View file @
a5944121
package
com
.
yanzuoguang
.
dao
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 途比达列明映射
*/
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Target
({
ElementType
.
FIELD
})
public
@interface
SqlFieldAnnotation
{
/**
* Sql语句名称,当为空时,则为当前类
*
* @return
*/
String
[]
name
()
default
{};
/**
* Sql语句列表,当table和sql都为空时,则根据当前注解 @TableAnnotation 生成对应类型的SQL语句
*
* @return
*/
String
[]
sql
()
default
{};
/**
* 字段代码片段,关联到 {FIELD}
*
* @return
*/
String
[]
field
()
default
{};
/**
* inner代码片段,关联到 {INNER}
*
* @return
*/
String
[]
inner
()
default
{};
/**
* 条件代码片段,关联到 {INNER}
*
* @return
*/
String
[]
where
()
default
{};
/**
* 统计代码片段,关联到 {GROUP}
*
* @return
*/
String
[]
group
()
default
{};
/**
* 统计代码片段,关联到 {ORDER}
*
* @return
*/
String
[]
order
()
default
{};
/**
* 统计代码片段,关联到 {LIMIT}
*
* @return
*/
String
[]
limit
()
default
{};
/**
* 包含的代码片段
*
* @return
*/
String
[]
codes
()
default
{};
}
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