Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Target l_target = new Target();
- System.out.println("My directory is::"+l_target.getPackageName());
- l_target.setDirectory("src/main/java");
- l_target.setPackageName("com.my.paas.css.entity");
- Configuration configuration = new Configuration()
- .withJdbc(new Jdbc()
- .withDriver("com.mysql.jdbc.Driver")
- .withUrl("jdbc:mysql://localhost:3306/paas")
- .withUser("root"))
- .withGenerator(new Generator()
- .withDatabase(new Database()
- .withName("org.jooq.meta.mysql.MySQLDatabase")
- .withIncludes(".*")
- .withExcludes("")
- .withInputSchema("paas"))
- .withTarget(l_target));
- try {
- GenerationTool.generate(configuration);
- } catch (Exception ex) {
- System.out.println();
- ex.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment