diff --git a/jOOQ-website/contribute.php b/jOOQ-website/contribute.php index 5a709e6d9b..c482680bd5 100644 --- a/jOOQ-website/contribute.php +++ b/jOOQ-website/contribute.php @@ -1,7 +1,7 @@ Become a jOOQer'; + print 'Be a part of jOOQ! Become a jOOQer'; } function getSlogan() { return "jOOQ can only be as great as its community. You can make the change happen! jOOQ needs @@ -18,7 +18,7 @@ function printContent() {
Using the official jOOQ-codegen-maven plugin, you can integrate + source code generation in your Maven build process:
++<plugin> + + <!-- Specify the maven code generator plugin --> + <groupId>org.jooq</groupId> + <artifactId>jooq-codegen-maven</artifactId> + <version>1.6.7</version> + + <!-- The plugin should hook into the generate goal --> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + + <!-- Manage the plugin's dependency. In this example, we'll use a Postgres database --> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-702.jdbc4</version> + </dependency> + </dependencies> + + <!-- Specify the plugin configuration --> + <configuration> + + <!-- JDBC connection parameters --> + <jdbc> + <driver>org.postgresql.Driver</driver> + <url>jdbc:postgresql:postgres</url> + <schema>public</schema> + <user>postgres</user> + <password>test</password> + </jdbc> + + <!-- Generator parameters --> + <generator> + <name>org.jooq.util.DefaultGenerator</name> + <database> + <name>org.jooq.util.postgres.PostgresDatabase</name> + <includes>.*</includes> + <excludes></excludes> + </database> + <generate> + <relations>true</relations> + <deprecated>false</deprecated> + </generate> + <target> + <packageName>org.jooq.util.maven.example</packageName> + <directory>target/generated-sources/jooq</directory> + </target> + <masterDataTables> + <masterDataTable> + <name>t_language</name> + <literal>cd</literal> + <description>description</description> + </masterDataTable> + </masterDataTables> + </generator> + </configuration> +</plugin> ++
See the full example of a pom.xml including the jOOQ-codegen artefact here: + https://github.com/lukaseder/jOOQ/blob/master/jOOQ-codegen-maven-example/pom.xml +
+Be sure, both jOOQ.jar and your generated package (see configuration) are located on your classpath. Once this is done, you diff --git a/jOOQ-website/manual/META/Configuration/index.php b/jOOQ-website/manual/META/Configuration/index.php index a214beb802..db3538d3ec 100644 --- a/jOOQ-website/manual/META/Configuration/index.php +++ b/jOOQ-website/manual/META/Configuration/index.php @@ -212,7 +212,81 @@ org.jooq.util.GenerationTool /jooq-config.properties generatortargetpackage="org.jooq.test.generatedclasses" generatortargetdirectory="${basedir}/src"/> </target> + + +
Using the official jOOQ-codegen-maven plugin, you can integrate + source code generation in your Maven build process:
++<plugin> + + <!-- Specify the maven code generator plugin --> + <groupId>org.jooq</groupId> + <artifactId>jooq-codegen-maven</artifactId> + <version>1.6.7</version> + + <!-- The plugin should hook into the generate goal --> + <executions> + <execution> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + + <!-- Manage the plugin's dependency. In this example, we'll use a Postgres database --> + <dependencies> + <dependency> + <groupId>postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>8.4-702.jdbc4</version> + </dependency> + </dependencies> + + <!-- Specify the plugin configuration --> + <configuration> + + <!-- JDBC connection parameters --> + <jdbc> + <driver>org.postgresql.Driver</driver> + <url>jdbc:postgresql:postgres</url> + <schema>public</schema> + <user>postgres</user> + <password>test</password> + </jdbc> + + <!-- Generator parameters --> + <generator> + <name>org.jooq.util.DefaultGenerator</name> + <database> + <name>org.jooq.util.postgres.PostgresDatabase</name> + <includes>.*</includes> + <excludes></excludes> + </database> + <generate> + <relations>true</relations> + <deprecated>false</deprecated> + </generate> + <target> + <packageName>org.jooq.util.maven.example</packageName> + <directory>target/generated-sources/jooq</directory> + </target> + <masterDataTables> + <masterDataTable> + <name>t_language</name> + <literal>cd</literal> + <description>description</description> + </masterDataTable> + </masterDataTables> + </generator> + </configuration> +</plugin> ++
See the full example of a pom.xml including the jOOQ-codegen artefact here: + https://github.com/lukaseder/jOOQ/blob/master/jOOQ-codegen-maven-example/pom.xml +
+Be sure, both jOOQ.jar and your generated package (see configuration) are located on your classpath. Once this is done, you diff --git a/jOOQ-website/manual/index.php b/jOOQ-website/manual/index.php index 8ea524efcb..c56b087efd 100644 --- a/jOOQ-website/manual/index.php +++ b/jOOQ-website/manual/index.php @@ -34,7 +34,7 @@ function printContent() { A multi-paged HTML manual -
This manual is divided into four main sections:
@@ -1410,7 +1410,80 @@ org.jooq.util.GenerationTool /jooq-config.properties generatortargetpackage="org.jooq.test.generatedclasses" generatortargetdirectory="${basedir}/src"/> </target> + + +Using the official jOOQ-codegen-maven plugin, you can integrate + source code generation in your Maven build process:
+See the full example of a pom.xml including the jOOQ-codegen artefact here: + https://github.com/lukaseder/jOOQ/blob/master/jOOQ-codegen-maven-example/pom.xml
+Be sure, both jOOQ.jar and your generated package (see configuration) are located on your classpath. Once this is done, you