All versions: 3.11 | 3.10 | 3.9 | 3.8 | 3.7 | Development versions: 3.12 | Unsupported versions: 3.6 | 3.5 | 3.4 | 3.3 | 3.2

Sometimes, the actual database data type does not match the SQL data type that you would like to use in Java. This is often the case for ill-supported SQL data types, such as BOOLEAN or UUID. jOOQ's code generator allows you to apply simple data type rewriting. The following configuration will rewrite IS_VALID columns in all tables to be of type BOOLEAN.


  <!-- Associate data type rewrites with database columns -->
      <!-- Specify any data type that is supported in your database, or if unsupported, a type from org.jooq.impl.SQLDataType -->

      <!-- Add a Java regular expression matching fully-qualified columns.
           Use the pipe to separate several expressions.
           If provided, both "expressions" and "types" must match. -->
      <!-- Add a Java regular expression matching data types to be forced to
           have this type. If provided, both "expressions" and "types" must match. -->

You must provide at least either an <expressions/> or a <types/> element, or both.

See the section about Custom data types for rewriting columns to your own custom data types.

The jOOQ Logo