Hi, I suggest looking into jOOQ's runtime mapping feature instead: https://www.jooq.org/doc/latest/manual/sql-building/dsl-context/runtime-schema-mapping
Hope this helps, Lukas 2017-02-09 17:02 GMT+01:00 <[email protected]>: > Hi there > I'm using JOOQ 3.8.6 with maven (and spring boot) > > I have a configuration like this: > > <generator> > <database> > ... > <schemata> > <schema> > <inputSchema>fooSchema</inputSchema> > <outputSchema></outputSchema> > </schema> > <schema> > <inputSchema>barSchema</inputSchema> > <outputSchema></outputSchema> > </schema> > </schemata> > > </database> > <target> > <packageName>my.package</packageName> > <directory>target/generated- > sources/jooq</directory> > </target> > </generator> > > > What I want to achieve is to use different schema (dev/test for example) > without needed to regenerate or generate another sources > > Now, when I execute jooq'a sqls I always have fooSchema.table. and so on > regardless of the datasource given in the DSLContext instance. > > I have tried many approaches with > <outputSchemaToDefault>true</outputSchemaToDefault>, > but then only one schema was generated. > > Thanks in advance for help. > > -- > 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.
