Thank you very much indeed. I thought this part was related to schema mapping...
Am Montag, 7. April 2014 09:23:43 UTC+2 schrieb Lukas Eder: > > Hello, > > The pom.xml uses the same XML structure as the standalone code generator. > You'll find an authoritative XSD online: > http://www.jooq.org/xsd/jooq-codegen-3.3.0.xsd > > The /configuration/generator/database/inputSchema element is a convenience > for the more explicit /configuration/generator/database/schemata element, > which allows for specifying several schemas (and schema mappings). This is > documented here: > http://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/ > > <!-- A configuration element to configure several input and/or output > schemata for jooq-meta, in case you're using jooq-meta in a multi- > schema environment. > This cannot be combined with the above inputSchema / outputSchema --> > <schemata> > <schema> > <inputSchema>...</inputSchema> > <outputSchema>...</outputSchema> > </schema> > [ <schema>...</schema> ... ] > </schemata> > > > Hope this helps, > Lukas > > > 2014-04-04 23:12 GMT+02:00 <[email protected] <javascript:>>: > >> Hello, >> >> I'm running into problems when setting up a project with maven-codegen >> 3.3.1 >> In an older project I used jooq 3.2 to generate code for multiple schemas. >> The pom.xml configuration worked fine. >> In 3.3.1, the pom.xml configuration looks different, and I can't figure >> out how >> to generate more than one schema. >> I can't find any example pom.xml on the net that tries to do so likewise, >> and >> the jooq doc doesn't mention how to do this, as far as I can see. >> >> Can anyone provide information either how one achieves the configuration, >> say, >> for a schema "staging" and "masterdata", or where to look for it ? >> >> I messed around trying more than one generator definition, but this only >> leads to the last one to be generated. >> >> <!-- Generator parameters --> >> <generator> >> <name>org.jooq.util.DefaultGenerator</name> >> <database> >> <name>org.jooq.util.postgres.PostgresDatabase</name> >> <includes>.*</includes> >> <excludes></excludes> >> <inputSchema>staging</inputSchema> >> </database> >> <target> >> <packageName>xx.xx.xx.statistics.database.staging</packageName> >> <directory>target/generated-sources/jooq</directory> >> </target> >> </generator> >> >> -- >> 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] <javascript:>. >> 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.
