yuchenggroup / rapid-generator Goto Github PK
View Code? Open in Web Editor NEW半自动化Java代码生成器
半自动化Java代码生成器
如何所有表在一个文件生成?
我想自动生成一些sql语句,怎么生成在同一个文件中?
你好,我在使用这个工具的时候,发现了一个skipTablePrefixes的bug.
如果在generator.xml里面没有配置skipTablePrefixes的话,正常情况下应该所有的表都不忽略的.
但是在现在的代码里面,所有的表都忽略了.
看了下代码,是在GeneratorFacade.processByTable里面,如果没配置skipTablePrefixes,就给了他一个默认值"", 而sqlName.startsWith("")是永远为真的.所以就全部忽略了.
我大概修改了下
for(String prefix : prefixs.split(",")) {
/*bug fix
如果在generator.xml里面没有配置skipTablePrefixes的话,所有的表都会被跳过.
这个是不符合逻辑的
*/
if((null == prefix)|| ("".equalsIgnoreCase(prefix.trim())))
{
continue;
}
if(sqlName.startsWith(prefix)) {
GLogger.println("[skip] matches prefix: " + prefix + "; skipTable: " + sqlName);
return ;
}
}
感谢你维护这个框架~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.