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
0e244ee3
Commit
0e244ee3
authored
Jun 09, 2017
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增注释插件
parent
ffcbdc12
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
350 additions
and
7 deletions
+350
-7
README.md
README.md
+325
-6
src/main/resources/default-comment.ftl
src/main/resources/default-comment.ftl
+25
-1
No files found.
README.md
View file @
0e244ee3
This diff is collapsed.
Click to expand it.
src/main/resources/default-comment.ftl
View file @
0e244ee3
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
* This class was generated by MyBatis Generator.
* This class was generated by MyBatis Generator.
* This class corresponds to the database table ${introspectedTable.fullyQualifiedTable}
* This class corresponds to the database table ${introspectedTable.fullyQualifiedTable}
*
*
* ${mgb}
* ${mgb}
do_not_delete_during_merge
* @project https://github.com/itfsw/mybatis-generator-plugin
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
*/
]]>
</comment>
]]>
</comment>
...
@@ -201,6 +201,7 @@
...
@@ -201,6 +201,7 @@
*/
*/
-->
-->
<comment
ID=
"addGetterComment"
>
<![CDATA[
<comment
ID=
"addGetterComment"
>
<![CDATA[
<#if introspectedColumn??>
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ${introspectedTable.fullyQualifiedTable}.${introspectedColumn.actualColumnName}
* This method returns the value of the database column ${introspectedTable.fullyQualifiedTable}.${introspectedColumn.actualColumnName}
...
@@ -210,6 +211,17 @@
...
@@ -210,6 +211,17 @@
* ${mgb}
* ${mgb}
* @project https://github.com/itfsw/mybatis-generator-plugin
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
*/
<
#else>
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the field ${method.name?replace("get","")?replace("is", "")?uncap_first}
*
* @return the value of field ${method.name?replace("get","")?replace("is", "")?uncap_first}
*
* ${mgb}
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
<
/#if>
]]>
</comment>
]]>
</comment>
<!-- #############################################################################################################
<!-- #############################################################################################################
...
@@ -225,6 +237,7 @@
...
@@ -225,6 +237,7 @@
*/
*/
-->
-->
<comment
ID=
"addSetterComment"
>
<![CDATA[
<comment
ID=
"addSetterComment"
>
<![CDATA[
<#if introspectedColumn??>
/**
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ${introspectedTable.fullyQualifiedTable}.${introspectedColumn.actualColumnName}
* This method sets the value of the database column ${introspectedTable.fullyQualifiedTable}.${introspectedColumn.actualColumnName}
...
@@ -234,6 +247,17 @@
...
@@ -234,6 +247,17 @@
* ${mgb}
* ${mgb}
* @project https://github.com/itfsw/mybatis-generator-plugin
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
*/
<
#else>
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the field ${method.name?replace("set","")?uncap_first}
*
* @param ${method.parameters[0].name} the value for field ${method.name?replace("set","")?uncap_first}
*
* ${mgb}
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
<
/#if>
]]>
</comment>
]]>
</comment>
<!-- #############################################################################################################
<!-- #############################################################################################################
...
...
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