|
@@ -45,9 +45,10 @@ public class CodeGenerator {
|
|
|
private final String moduleName;
|
|
|
private final String templateDir = getClass().getResource("/").getPath() + "generator/";
|
|
|
private final String isMain;
|
|
|
+ private final Boolean isMySql;
|
|
|
|
|
|
public CodeGenerator(String oldBasePackage, String newBasePackage, String pdmFile, String tableCode,
|
|
|
- String referenceType, boolean ifUseCustDocDefRef, String author, String targetProjectRootPath, String isMain) {
|
|
|
+ String referenceType, boolean ifUseCustDocDefRef, String author, String targetProjectRootPath, String isMain, Boolean isMySql) {
|
|
|
this.oldBasePackage = oldBasePackage;
|
|
|
this.newBasePackage = newBasePackage;
|
|
|
this.pdmFile = pdmFile;
|
|
@@ -57,6 +58,7 @@ public class CodeGenerator {
|
|
|
this.author = author;
|
|
|
this.targetProjectRootPath = targetProjectRootPath;
|
|
|
this.isMain = isMain;
|
|
|
+ this.isMySql = isMySql;
|
|
|
moduleName = getModuleNameByTable(tableCode);
|
|
|
|
|
|
final String[] array = {"ID", "DR", "TS", "CREATOR", "CREATION_TIME", "MODIFIER", "MODIFIED_TIME"};
|
|
@@ -165,6 +167,7 @@ public class CodeGenerator {
|
|
|
data.put("author", author);
|
|
|
data.put("table", table);
|
|
|
data.put("isMain", isMain);
|
|
|
+ data.put("isMySql", isMySql);
|
|
|
// 输出文件
|
|
|
String fileName = table.getClassName();
|
|
|
// 文件后缀名
|