|
@@ -33,7 +33,7 @@ public class CodeGeneration {
|
|
gc.setEnableCache(false);// XML 二级缓存
|
|
gc.setEnableCache(false);// XML 二级缓存
|
|
gc.setBaseResultMap(true);// XML ResultMap
|
|
gc.setBaseResultMap(true);// XML ResultMap
|
|
gc.setBaseColumnList(false);// XML columList
|
|
gc.setBaseColumnList(false);// XML columList
|
|
- gc.setAuthor("zhoutg");// 作者
|
|
|
|
|
|
+ gc.setAuthor("gaodm");// 作者
|
|
|
|
|
|
// 自定义文件命名,注意 %s 会自动填充表实体属性!
|
|
// 自定义文件命名,注意 %s 会自动填充表实体属性!
|
|
gc.setControllerName("%sController");
|
|
gc.setControllerName("%sController");
|
|
@@ -56,7 +56,7 @@ public class CodeGeneration {
|
|
StrategyConfig strategy = new StrategyConfig();
|
|
StrategyConfig strategy = new StrategyConfig();
|
|
// strategy.setTablePrefix(new String[] { "med_" });// 此处可以修改为您的表前缀
|
|
// strategy.setTablePrefix(new String[] { "med_" });// 此处可以修改为您的表前缀
|
|
strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
|
|
strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
|
|
- strategy.setInclude(new String[] { "qc_model_hospital"}); // 需要生成的表
|
|
|
|
|
|
+ strategy.setInclude(new String[] { "qc_type"}); // 需要生成的表
|
|
|
|
|
|
strategy.setSuperServiceClass(null);
|
|
strategy.setSuperServiceClass(null);
|
|
strategy.setSuperServiceImplClass(null);
|
|
strategy.setSuperServiceImplClass(null);
|