Jooq Maven and multiple schemas Jooq Maven and multiple schemas postgresql postgresql

Jooq Maven and multiple schemas


The secret is to replace this:

<inputSchema>ui</inputSchema>

By this:

<schemata>  <schema>    <inputSchema>ui</inputSchema>  </schema>  <schema>    <inputSchema>other_schema</inputSchema>  </schema></schemata>

You could also entirely remove all <inputSchema/> configuration, then the jOOQ code generator will generate classes for all the schemas it discovers (including pg_catalog and information_schema)

More details can be found in the jOOQ manual.