diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml index 47ada9335c..8f64829c55 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.10.xml @@ -11928,6 +11928,10 @@ for (BookRecord book : create.selectFrom(BOOK).fetch()) { } }]]> +

+ If you're using in your code generation configuration, you can configure the application of an EnumConverter by adding <enumConverter>true</enumConverter> to your <forcedType/> configuration. +

+

Using Converters in generated source code

jOOQ also allows for generated source code to reference your own custom converters, in order to permanently replace a <T> type by your own, custom <U> type. See the manual's section about for details. @@ -16306,6 +16310,72 @@ public class CaseInsensitiveOrderProvider implements Comparator { For more information about using converters, .

+

Mapping to an enum user type with a converter

+ +

+ If your user type is a Java enum, you can use the <enumConverter/> convenience flag instead of an explicit converter per enum type. This will apply the built-in . +

+ +

+ XML configuration (standalone and Maven) +

+ + + + + + + + + + com.example.MyEnum + + + true + + + .*\.MY_STATUS + .* + + + + +]]> + +

+ Programmatic configuration +

+ + + +

+ Gradle configuration +

+ + +

Mapping to user type with a binding

diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.11.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.11.xml index 5ba956b65a..85f0b6ca36 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.11.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.11.xml @@ -12167,6 +12167,10 @@ for (BookRecord book : create.selectFrom(BOOK).fetch()) { } }]]> +

+ If you're using in your code generation configuration, you can configure the application of an EnumConverter by adding <enumConverter>true</enumConverter> to your <forcedType/> configuration. +

+

Using Converters in generated source code

jOOQ also allows for generated source code to reference your own custom converters, in order to permanently replace a <T> type by your own, custom <U> type. See the manual's section about for details. @@ -16946,6 +16950,72 @@ public class CaseInsensitiveOrderProvider implements Comparator { For more information about using converters, .

+

Mapping to an enum user type with a converter

+ +

+ If your user type is a Java enum, you can use the <enumConverter/> convenience flag instead of an explicit converter per enum type. This will apply the built-in . +

+ +

+ XML configuration (standalone and Maven) +

+ + + + + + + + + + com.example.MyEnum + + + true + + + .*\.MY_STATUS + .* + + + + +]]> + +

+ Programmatic configuration +

+ + + +

+ Gradle configuration +

+ + +

Mapping to user type with a binding

diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml index 8d99a4bafa..65cee9f483 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.12.xml @@ -12209,6 +12209,10 @@ for (BookRecord book : create.selectFrom(BOOK).fetch()) { } }]]> +

+ If you're using in your code generation configuration, you can configure the application of an EnumConverter by adding <enumConverter>true</enumConverter> to your <forcedType/> configuration. +

+

Using Converters in generated source code

jOOQ also allows for generated source code to reference your own custom converters, in order to permanently replace a <T> type by your own, custom <U> type. See the manual's section about for details. @@ -16990,6 +16994,72 @@ public class CaseInsensitiveOrderProvider implements Comparator { For more information about using converters, .

+

Mapping to an enum user type with a converter

+ +

+ If your user type is a Java enum, you can use the <enumConverter/> convenience flag instead of an explicit converter per enum type. This will apply the built-in . +

+ +

+ XML configuration (standalone and Maven) +

+ + + + + + + + + + com.example.MyEnum + + + true + + + .*\.MY_STATUS + .* + + + + +]]> + +

+ Programmatic configuration +

+ + + +

+ Gradle configuration +

+ + +

Mapping to user type with a binding