All versions: 3.11 | Development versions: 3.12

Regardless if you're using a standalone code generation configuration, or if you're generating code with Maven, ant, or gradle, you can always provide default values for certain configuration elements through the following system properties:

  • -Djooq.codegen.configurationFile (path): Specify an external configuration file, rather than using the inline configuration, e.g. in Maven
  • -Djooq.codegen.jdbc.driver (class name): The JDBC driver to use for JDBC connection based code generation
  • -Djooq.codegen.jdbc.url (url): The JDBC URL to use for JDBC connection based code generation
  • -Djooq.codegen.jdbc.user (string): The JDBC user name to use for JDBC connection based code generation
  • -Djooq.codegen.jdbc.username (string, same as user): The JDBC user name to use for JDBC connection based code generation
  • -Djooq.codegen.jdbc.password (string): The JDBC password to use for JDBC connection based code generation
  • -Djooq.codegen.logging (TRACE, DEBUG, INFO, WARN, ERROR, FATAL): The log level to use
  • -Djooq.codegen.skip (boolean): Allows for skipping the execution of jOOQ code generation. Useful for larger builds, e.g. with Maven

In case of conflict between the above default value and a more concrete, local configuration, the latter prevails and the default is overridden.

The jOOQ Logo