public M setId(java.lang.String id) { set("id", id); return (M)this; } public java.lang.String getId() { return getStr("id"); }
//生成M型返回值类型的方法
DataSource getDataSource() { PropKit.(); DruidPlugin druidPlugin = TeamBuildConfig.(); druidPlugin.start(); druidPlugin.getDataSource(); } main(String[] args) { String baseModelPackageName = ; String baseModelOutputDir = PathKit.() + ; String modelPackageName = ; String modelOutputDir = baseModelOutputDir + ; Generator generator = Generator((), baseModelPackageName, baseModelOutputDir, modelPackageName, modelOutputDir); generator.setGenerateChainSetter(); generator.addExcludedTable(); generator.setGenerateDaoInModel(); generator.setGenerateChainSetter(); generator.setGenerateDataDictionary(); generator.setRemovedTableNamePrefixes(); generator.generate(); } public void setId(String id) { set("id", id); } public String getId() { return getStr("id"); }
//生成无法回值对象方法
DataSource getDataSource() { DruidPlugin druidPlugin = TeamBuildConfig.(); druidPlugin.start(); druidPlugin.getDataSource(); } main(String[] args) { String baseModelPackageName = ; String baseModelOutputDir = ; String modelPackageName = ; String modelOutputDir = baseModelOutputDir; Generator gernerator = Generator((), baseModelPackageName, baseModelOutputDir, modelPackageName, modelOutputDir); (String table : ) { gernerator.addExcludedTable(table.trim()); } gernerator.setGenerateDaoInModel(); gernerator.setGenerateDataDictionary(); gernerator.generate(); }
这两种的区别是什么?是什么哪个属性造成的?
项目:JFinal