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 d5557da55c..57d314d289 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 @@ -17904,6 +17904,55 @@ CREATE TABLE book_to_book_store ( +
+ Generating XML + +

+ By default the code generator produces Java files for use with the jOOQ API as documented throughout this manual. In some cases, however, it may be desireable to generate other meta data formats, such as an XML document. This can be done with the XMLGenerator. +

+ +

+ The format produced by the XMLGenerator is the same as the one consumed by the , which can read such XML content to produce Java code. It is specified in the http://www.jooq.org/xsd/jooq-meta-{meta-xsd-version}.xsd schema. Essentially, this schema is an XML representation of the SQL standard INFORMATION_SCHEMA, as implemented by databases like H2, HSQLDB, MySQL, PostgreSQL, or SQL Server. +

+ +

+ In order to use the XMLGenerator, simply place the following class reference into your code generation configuration: +

+ +

+ XML configuration (standalone and Maven) +

+ + + + org.jooq.util.XMLGenerator + + ... +]]> + +

+ Programmatic configuration +

+ + + +

+ Gradle configuration +

+ + + +

+ This configuration does not interfere with most of the remaining code generation configuration, e.g. you can still specify the JDBC connection or the generation output target as usual. +

+
+
+
Running the code generator with Maven diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml index c960f49618..2a089ed0d1 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml @@ -17494,6 +17494,55 @@ public class Book {
+
+ Generating XML + +

+ By default the code generator produces Java files for use with the jOOQ API as documented throughout this manual. In some cases, however, it may be desireable to generate other meta data formats, such as an XML document. This can be done with the XMLGenerator. +

+ +

+ The format produced by the XMLGenerator is the same as the one consumed by the , which can read such XML content to produce Java code. It is specified in the http://www.jooq.org/xsd/jooq-meta-{meta-xsd-version}.xsd schema. Essentially, this schema is an XML representation of the SQL standard INFORMATION_SCHEMA, as implemented by databases like H2, HSQLDB, MySQL, PostgreSQL, or SQL Server. +

+ +

+ In order to use the XMLGenerator, simply place the following class reference into your code generation configuration: +

+ +

+ XML configuration (standalone and Maven) +

+ + + + org.jooq.util.XMLGenerator + + ... +]]> + +

+ Programmatic configuration +

+ + + +

+ Gradle configuration +

+ + + +

+ This configuration does not interfere with most of the remaining code generation configuration, e.g. you can still specify the JDBC connection or the generation output target as usual. +

+
+
+
Running the code generator with Maven