Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mybatis-generator-plugin
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
mybatis-generator-plugin
Commits
cbc9c5a7
Commit
cbc9c5a7
authored
Jan 12, 2017
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改README.md 描述
parent
315a8960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+5
-5
No files found.
README.md
View file @
cbc9c5a7
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
查询单条数据插件
*
查询单条数据插件
*
MySQL分页插件
*
MySQL分页插件
*
数据Model链式构建插件
*
数据Model链式构建插件
*
查询条件链式构建
插件
*
Example Criteria 增强
插件
---------------------------------------
---------------------------------------
Maven引用:
Maven引用:
...
@@ -140,18 +140,18 @@ public class Test {
...
@@ -140,18 +140,18 @@ public class Test {
}
}
}
}
```
```
### 4.
数据Model链式构建
插件
### 4.
Example Criteria 增强
插件
表Example增加Criteria的快速
快速构建方式
表Example增加Criteria的快速
返回example()方法。
插件:
插件:
```
xml
```
xml
<!--
查询条件链式构建
插件 -->
<!--
Example Criteria 增强
插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.CriteriaBuilderPlugin"
/>
<plugin
type=
"com.itfsw.mybatis.generator.plugins.CriteriaBuilderPlugin"
/>
```
```
使用:
使用:
```
java
```
java
public
class
Test
{
public
class
Test
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
// 表Example.Criteria增加了工厂方法example()
和链式构建
支持,使用后可链式构建查询条件使用example()返回Example对象
// 表Example.Criteria增加了工厂方法example()支持,使用后可链式构建查询条件使用example()返回Example对象
TbExample
ex
=
new
TbExample
()
TbExample
ex
=
new
TbExample
()
.
createCriteria
()
.
createCriteria
()
.
andField1EqualTo
(
1
)
.
andField1EqualTo
(
1
)
...
...
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