Search in sources :

Example 1 with Generator

use of com.sun.tools.corba.se.idl.Generator in project paascloud-master by paascloud.

the class MybatisGenerator method main.

/**
 * The entry point of application.
 *
 * @param args the input arguments
 *
 * @throws Exception the exception
 */
public static void main(String[] args) throws Exception {
    List<String> warnings = new ArrayList<>();
    ConfigurationParser cp = new ConfigurationParser(warnings);
    Configuration config = cp.parseConfiguration(Generator.class.getResourceAsStream("/generator/generatorConfig.xml"));
    DefaultShellCallback callback = new DefaultShellCallback(true);
    MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings);
    myBatisGenerator.generate(null);
}
Also used : Configuration(org.mybatis.generator.config.Configuration) ArrayList(java.util.ArrayList) ConfigurationParser(org.mybatis.generator.config.xml.ConfigurationParser) DefaultShellCallback(org.mybatis.generator.internal.DefaultShellCallback) MyBatisGenerator(org.mybatis.generator.api.MyBatisGenerator) Generator(com.sun.tools.corba.se.idl.Generator) MyBatisGenerator(org.mybatis.generator.api.MyBatisGenerator)

Aggregations

Generator (com.sun.tools.corba.se.idl.Generator)1 ArrayList (java.util.ArrayList)1 MyBatisGenerator (org.mybatis.generator.api.MyBatisGenerator)1 Configuration (org.mybatis.generator.config.Configuration)1 ConfigurationParser (org.mybatis.generator.config.xml.ConfigurationParser)1 DefaultShellCallback (org.mybatis.generator.internal.DefaultShellCallback)1