Skip to content

Commit 55010f2

Browse files
author
杨利兵
committed
添加表注释(MySql)
1 parent 51f53c3 commit 55010f2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/com/yanglb/utilitys/codegen/core/translator/impl/DdlMysqlTranslatorImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ public String genDdl(DdlModel model) throws CodeGenException {
166166
if (autoIncrement != null) {
167167
info.append(String.format("AUTO_INCREMENT=%d ", autoIncrement));
168168
}
169+
170+
// 注释
171+
info.append(String.format("COMMENT='%s'", model.getSheetName()));
169172

170173
// 结束
171174
sb.append(String.format(") %s;\r\n\r\n", info.toString().trim()));

src/com/yanglb/utilitys/codegen/shell/CodeGenShell.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public boolean invoke(String[] args) {
8181
* 显示帮助信息
8282
*/
8383
private void showHelp() {
84-
System.out.println("代码生成器 v2.0.2 使用说明");
84+
System.out.println("代码生成器 v2.0.3 使用说明");
8585
System.out.println("Copyright 2015-2019 yanglb.com All Rights Reserved.");
8686
System.out.println();
8787
System.out.println("用法:");

0 commit comments

Comments
 (0)