Hello Sachin, DSLContext doesn't really have a lifecycle (or state) of its own. It's just a wrapper for org.jooq.Configuration, which contains all the interesting stuff, enhancing it with DSL entry points - just like the static DSL utility class. As such, it doesn't matter that it is generated afresh all the time.
Generated DAOs have a constructor that accepts a Configuration. Or, you can use DAOImpl.setConfiguration(). I hope this helps, Lukas 2015-10-08 21:55 GMT+02:00 <[email protected]>: > Hello all, > > I am new here so please forgive if I am not really clear on my question or > I have missed any important details. > > I am trying to integrate Ninja Framework and JOOQ > using guice-persist-jooq, I created a Postgres DB and generated various > classes(DAO, Model, Pojo etc) using jooq-codegen I noticed that the > generated DAO always create a new DSLContext in using() method in DAOImpl. > I am planing to inject DSLContext using guice and use it somehow in > generated DAOs. I could not find any way. Could you please help. > > Thanks, > Sachin > > -- > 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. > -- 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.
