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
4108a42b
Commit
4108a42b
authored
May 16, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[issues#26][issues#27]:插件因为是复用的,需要进行属性的清空。
parent
d5239892
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/main/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePlugin.java
...tfsw/mybatis/generator/plugins/SelectSelectivePlugin.java
+7
-6
No files found.
src/main/java/com/itfsw/mybatis/generator/plugins/SelectSelectivePlugin.java
View file @
4108a42b
...
...
@@ -132,24 +132,25 @@ public class SelectSelectivePlugin extends BasePlugin implements ISelectOneByExa
// ============================================== sqlMap 生成 ===================================================
@Override
public
boolean
clientSelectByExampleWithBLOBsMethodGenerated
(
Method
method
,
TopLevelClass
topLevelClass
,
IntrospectedTable
introspectedTable
)
{
public
boolean
sqlMapSelectByExampleWithoutBLOBsElementGenerated
(
XmlElement
element
,
IntrospectedTable
introspectedTable
)
{
this
.
selectByExampleSelectiveEle
=
this
.
generateSelectSelectiveElement
(
METHOD_SELECT_BY_EXAMPLE_SELECTIVE
,
introspectedTable
,
false
,
true
);
return
super
.
clientSelectByExampleWithBLOBsMethodGenerated
(
method
,
topLevelClass
,
introspectedTable
);
return
super
.
sqlMapSelectByExampleWithoutBLOBsElementGenerated
(
element
,
introspectedTable
);
}
@Override
public
boolean
clientSelectByExampleWithoutBLOBsMethodGenerated
(
Method
method
,
TopLevelClass
topLevelClass
,
IntrospectedTable
introspectedTable
)
{
public
boolean
sqlMapSelectByExampleWithBLOBsElementGenerated
(
XmlElement
element
,
IntrospectedTable
introspectedTable
)
{
if
(!
introspectedTable
.
hasBLOBColumns
())
{
this
.
selectByExampleSelectiveEle
=
this
.
generateSelectSelectiveElement
(
METHOD_SELECT_BY_EXAMPLE_SELECTIVE
,
introspectedTable
,
false
,
true
);
}
return
super
.
clientSelectByExampleWithoutBLOBsMethodGenerated
(
method
,
topLevelClass
,
introspectedTable
);
return
super
.
sqlMapSelectByExampleWithBLOBsElementGenerated
(
element
,
introspectedTable
);
}
@Override
public
boolean
clientSelectByPrimaryKeyMethodGenerated
(
Method
method
,
TopLevelClass
topLevelClass
,
IntrospectedTable
introspectedTable
)
{
public
boolean
sqlMapSelectByPrimaryKeyElementGenerated
(
XmlElement
element
,
IntrospectedTable
introspectedTable
)
{
this
.
selectByPrimaryKeySelectiveEle
=
this
.
generateSelectSelectiveElement
(
METHOD_SELECT_BY_PRIMARY_KEY_SELECTIVE
,
introspectedTable
,
false
,
false
);
return
super
.
clientSelectByPrimaryKeyMethodGenerated
(
method
,
topLevelClass
,
introspectedTable
);
return
super
.
sqlMapSelectByPrimaryKeyElementGenerated
(
element
,
introspectedTable
);
}
/**
...
...
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