Code Monkey home page Code Monkey logo

rapid-generator's Issues

skipTablePrefixes issue

你好,我在使用这个工具的时候,发现了一个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 ;
            }
        }

感谢你维护这个框架~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.