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
15cc5ead
Commit
15cc5ead
authored
May 18, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V1.2.5
parent
887bd057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
README.md
README.md
+15
-4
No files found.
README.md
View file @
15cc5ead
...
...
@@ -30,7 +30,7 @@ Maven引用:
<dependency>
<groupId>
com.itfsw
</groupId>
<artifactId>
mybatis-generator-plugin
</artifactId>
<version>
1.2.
4
</version>
<version>
1.2.
5
</version>
</dependency>
```
---------------------------------------
...
...
@@ -315,7 +315,13 @@ Mybatis Generator 插件默认把Model类和Example类都生成到一个包下
插件:
```
xml
<!-- 批量插入插件 -->
<plugin
type=
"com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"
/>
<plugin
type=
"com.itfsw.mybatis.generator.plugins.BatchInsertPlugin"
>
<!--
开启后可以实现官方插件根据属性是否为空决定是否插入该字段功能
!需开启allowMultiQueries=true多条sql提交操作,所以不建议使用!插件默认不开启
-->
<property
name=
"allowMultiQueries"
value=
"false"
/>
</plugin>
```
使用:
```
java
...
...
@@ -497,9 +503,14 @@ public class Test {
<plugin
type=
"com.itfsw.mybatis.generator.plugins.UpsertPlugin"
>
<!--
支持upsertByExample,upsertByExampleSelective操作
!需开启allowMultiQueries=true多条sql提交操作,所以不建议使用!
!需开启allowMultiQueries=true多条sql提交操作,所以不建议使用!插件默认不开启
-->
<property
name=
"allowMultiQueries"
value=
"false"
/>
<!--
开启批量功能,支持batchUpsert,batchUpsertWithBLOBs,batchUpserSelective
!这几个方法中无法支持IncrementsPlugin的方法!插件默认不开启
-->
<property
name=
"allow
MultiQueries"
value=
"tru
e"
/>
<property
name=
"allow
BatchUpsert"
value=
"fasl
e"
/>
</plugin>
```
使用:
...
...
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