Hi Kieran,

Please have a look at the manual's section about schema mapping at
code generation time:
http://www.jooq.org/doc/2.6/manual/code-generation/schema-mapping/

And at run time:
http://www.jooq.org/doc/2.6/manual/sql-building/factory/runtime-schema-mapping/

Cheers
Lukas

2012/12/2  <[email protected]>:
> Hi i have just started to learn how to use JOOQ and thought my ventures with
> JOOQ i have hit a little snag that i cant figure out, I generate my
> structure from one database and now i am using another database to run tests
> and the like so i pass in my connection to a new Factory() but i am finding
> JOOQ will revert to the other database so i pass a connection of
> jdbc:mysql://myhost.com/Test and it will revert back to the
> jdbc:mysql://myhost.com/Structure is it possible at all to dictate that JOOQ
> must use a certain database or is this not possible?
>
> Thanks
>
> Kieran

Reply via email to