In general you would be passing the url, login and password details to the
JDBC DriveManager, they will not be comming from the config files used by
the JOOQ Generator, so something like this example
http://www.jooq.org/doc/3.3/manual/getting-started/tutorials/jooq-in-7-steps/jooq-in-7-steps-step4/
Now if you have 3 environments does that mean you have 3 databases with the
same schema, if so all you need to do is change userName, password and url
in the example. If each environment has
a different schema things get more complicated/interesting as you have to
use code generated from 3 instances of the JOOQ Generator.
Roger
On Friday, April 18, 2014 12:11:09 PM UTC+1, Przemek Lewandowski wrote:
>
> Hello
>
> I have a small problem, because I have generated classes by Jooq
> generator, and I have 3 enviroments and I would like to stwich between them
> dynamicaly (at startup)
> And I dont know how to do it, beacause when I give a different url to JDBC
> Connection Manager it tells me that It cannot find that tables. I think
> that it uses url, login and password from config-generation file for Jooq
> Generator.
>
> Please help me :D
> greetings
>
--
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/d/optout.