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
d7eb5937
Commit
d7eb5937
authored
May 08, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充SelectSelectivePlugin插件测试用例
parent
e41466a9
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
271 additions
and
3 deletions
+271
-3
src/test/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePluginTest.java
.../mybatis/generator/plugins/SelectSelectivePluginTest.java
+260
-3
src/test/resources/scripts/SelectSelectivePlugin/init.sql
src/test/resources/scripts/SelectSelectivePlugin/init.sql
+4
-0
src/test/resources/scripts/SelectSelectivePlugin/mybatis-generator-with-constructorBased-false.xml
...ePlugin/mybatis-generator-with-constructorBased-false.xml
+7
-0
No files found.
src/test/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePluginTest.java
View file @
d7eb5937
This diff is collapsed.
Click to expand it.
src/test/resources/scripts/SelectSelectivePlugin/init.sql
View file @
d7eb5937
...
...
@@ -49,6 +49,10 @@ CREATE TABLE `tb_blobs` (
-- ----------------------------
-- Records of tb_blobs
-- ----------------------------
INSERT
INTO
`tb_blobs`
VALUES
(
'1'
,
'fd1'
,
'L1'
,
null
);
INSERT
INTO
`tb_blobs`
VALUES
(
'2'
,
null
,
'L2'
,
'LL2'
);
INSERT
INTO
`tb_blobs`
VALUES
(
'3'
,
'fd3'
,
'L3'
,
'LL3'
);
INSERT
INTO
`tb_blobs`
VALUES
(
'4'
,
'fd3'
,
'L4'
,
'LL4'
);
-- ----------------------------
-- Table structure for tb_keys
...
...
src/test/resources/scripts/SelectSelectivePlugin/mybatis-generator-with-constructorBased-false.xml
View file @
d7eb5937
...
...
@@ -54,5 +54,12 @@
<columnOverride
column=
"field1"
property=
"tsF1"
/>
</table>
<table
tableName=
"tb_keys"
/>
<table
tableName=
"tb_single_blob"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
<table
tableName=
"tb_blobs"
>
<generatedKey
column=
"id"
sqlStatement=
"MySql"
identity=
"true"
/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
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