Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mbg-comment
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
mbg-comment
Commits
fb8c652e
Commit
fb8c652e
authored
Oct 30, 2019
by
fangzhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
4ecf5c6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
pom.xml
pom.xml
+4
-4
src/main/java/me/mizhoux/mbgcomment/MySQLCommentGenerator.java
...ain/java/me/mizhoux/mbgcomment/MySQLCommentGenerator.java
+3
-0
No files found.
pom.xml
View file @
fb8c652e
...
@@ -42,12 +42,12 @@
...
@@ -42,12 +42,12 @@
<distributionManagement>
<distributionManagement>
<repository>
<repository>
<id>
fangzhipeng
</id>
<id>
maven-releases
</id>
<url>
http://
storage.zhipeng.com:8081/repository/fangzhipeng
/
</url>
<url>
http://
nexus.yuceyi.com/repository/maven-releases
/
</url>
</repository>
</repository>
<snapshotRepository>
<snapshotRepository>
<id>
fangzhipeng
</id>
<id>
maven-snapshots
</id>
<url>
http://
storage.zhipeng.com:8081/repository/fangzhipeng
/
</url>
<url>
http://
nexus.yuceyi.com/repository/maven-snapshots
/
</url>
</snapshotRepository>
</snapshotRepository>
</distributionManagement>
</distributionManagement>
...
...
src/main/java/me/mizhoux/mbgcomment/MySQLCommentGenerator.java
View file @
fb8c652e
...
@@ -27,6 +27,9 @@ public class MySQLCommentGenerator extends EmptyCommentGenerator {
...
@@ -27,6 +27,9 @@ public class MySQLCommentGenerator extends EmptyCommentGenerator {
public
void
addFieldComment
(
Field
field
,
IntrospectedTable
introspectedTable
,
IntrospectedColumn
introspectedColumn
)
{
public
void
addFieldComment
(
Field
field
,
IntrospectedTable
introspectedTable
,
IntrospectedColumn
introspectedColumn
)
{
// 获取列注释
// 获取列注释
String
remarks
=
introspectedColumn
.
getRemarks
();
String
remarks
=
introspectedColumn
.
getRemarks
();
if
(
null
==
remarks
||
""
.
equals
(
remarks
)
||
""
.
equals
(
remarks
.
trim
()))
{
return
;
}
field
.
addJavaDocLine
(
"/**"
);
field
.
addJavaDocLine
(
"/**"
);
field
.
addJavaDocLine
(
" * "
+
remarks
);
field
.
addJavaDocLine
(
" * "
+
remarks
);
field
.
addJavaDocLine
(
" */"
);
field
.
addJavaDocLine
(
" */"
);
...
...
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