Yes you can do that. Except that DefaultConfiguration is an implementation
of the jOOQ runtime org.jooq.Configuration interface, whereas the code
generator Configuration object is in the org.jooq.util.jaxb package of the
jooq-meta-3.2.0.jar file.

You would then run:

test.setConnection(cnx);
test.run(cfg);

Cheers
Lukas


2013/12/6 bruce buchanan <[email protected]>

> something like...
>
> Class.forName("org.sqlite.JDBC");
> Connection cnx = DriverManager.getConnection("jdbc:sqlite:" + path);
> GenerationTool test = new GenerationTool();
> test.setConnection(cnx);
> Configuration cfg = new DefaultConfiguration();
> cfg.data()
> test.run()
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to