title: jOOQ disable DAO and POJO generation
body: <p>My project requires me to generate DAOs and POJOs on my own. Have to do certain modifications to it. My SRS says that I have to use jOOQ. I am using it for the first time; I understand that jOOQ generates POJOs and DAOs on its own, but I couldn't find a way to disable it.</p>
  
  <p>I could't find anything in jOOQ's documentation that would help me with this. Could someone tell me how to disable jOOQ from generation DAO and POJO but still provide the Records.</p>
  
  <p>The Maven pom.xml file is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
  
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.jooq&lt;/groupId&gt;
      &lt;artifactId&gt;jooq-parent&lt;/artifactId&gt;
      &lt;version&gt;3.4.1&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;groupId&gt;org.jooq&lt;/groupId&gt;
  &lt;artifactId&gt;jooq&lt;/artifactId&gt;
  &lt;name&gt;jOOQ&lt;/name&gt;
  
  &lt;licenses&gt;
      &lt;license&gt;
          &lt;name&gt;Apache License, Version 2.0&lt;/name&gt;
          &lt;url&gt;http://www.jooq.org/inc/LICENSE.txt&lt;/url&gt;
          &lt;distribution&gt;repo&lt;/distribution&gt;
      &lt;/license&gt;
      &lt;!-- [pro] xxx
      xxxxxxxxx
          xxxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxxxxxxxxx
          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      xxxxxxxxxx
      xxxx [/pro] --&gt;
  &lt;/licenses&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;!-- XJC-generate JAXB artefacts. Contribution is the courtesy
               of Sergey Epik --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.8.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;!-- If this causes trouble in your Eclipse m2e lifecycle configuration, try using
                       http://m2eclipse.sonatype.org/sites/m2e/, instead of the official m2e Eclipse
                       plugin
                    --&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;extension&gt;true&lt;/extension&gt;
                  &lt;strict&gt;false&lt;/strict&gt;
                  &lt;schemaDirectory&gt;src/main/resources/xsd&lt;/schemaDirectory&gt;
                  &lt;bindingDirectory&gt;src/main/resources/xjb&lt;/bindingDirectory&gt;
                  &lt;schemaIncludes&gt;
                      &lt;include&gt;jooq-runtime-3.3.0.xsd&lt;/include&gt;
                  &lt;/schemaIncludes&gt;
                  &lt;generatePackage&gt;org.jooq.conf&lt;/generatePackage&gt;
                  &lt;args&gt;
                      &lt;arg&gt;-Xxew&lt;/arg&gt;
                      &lt;arg&gt;-Xxew:instantiate lazy&lt;/arg&gt;
                      &lt;arg&gt;-Xxew:delete&lt;/arg&gt;
                      &lt;arg&gt;-Xfluent-api&lt;/arg&gt;
                      &lt;arg&gt;-Xdefault-value&lt;/arg&gt;
                      &lt;arg&gt;-Xannotate&lt;/arg&gt;
                      &lt;arg&gt;-Xinheritance&lt;/arg&gt;
                  &lt;/args&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;com.github.jaxb-xew-plugin&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb-xew-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.0&lt;/version&gt;
                     &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb2-fluent-api&lt;/artifactId&gt;
                          &lt;version&gt;3.0&lt;/version&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb2-default-value&lt;/artifactId&gt;
                          &lt;version&gt;1.1&lt;/version&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb2-basics-annotate&lt;/artifactId&gt;
                          &lt;version&gt;0.6.2&lt;/version&gt;
                      &lt;/plugin&gt;              
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                          &lt;artifactId&gt;jaxb2-basics&lt;/artifactId&gt;
                          &lt;version&gt;0.5.3&lt;/version&gt;
                      &lt;/plugin&gt;      
                  &lt;/plugins&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.1.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;bundle-manifest&lt;/id&gt;
                      &lt;phase&gt;process-classes&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;manifest&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;supportedProjectTypes&gt;
                      &lt;supportedProjectType&gt;jar&lt;/supportedProjectType&gt;
                  &lt;/supportedProjectTypes&gt;
                  &lt;instructions&gt;
                      &lt;Bundle-SymbolicName&gt;${project.artifactId}&lt;/Bundle-SymbolicName&gt;
                      &lt;Export-Package&gt;*&lt;/Export-Package&gt;
                      &lt;Import-Package&gt;
                          javax.persistence;resolution:=optional,
                          org.apache.log4j;resolution:=optional,
                          *
                      &lt;/Import-Package&gt;
                      &lt;_versionpolicy&gt;[$(version;==;$(@)),$(version;+;$(@)))&lt;/_versionpolicy&gt;
                  &lt;/instructions&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;!-- add the generated manifest to the jar --&gt;
                      &lt;manifestFile&gt;${project.build.outputDirectory}/META-INF/MANIFEST.MF&lt;/manifestFile&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;profiles&gt;
      &lt;profile&gt;
          &lt;id&gt;release&lt;/id&gt;
          &lt;build&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;sign-artifacts&lt;/id&gt;
                              &lt;phase&gt;verify&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;sign&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.2.16&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;integration&lt;/artifactId&gt;
          &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;persistence-api&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.1.0.Alpha1&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;optional&gt;true&lt;/optional&gt;
      &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.11&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jmock&lt;/groupId&gt;
          &lt;artifactId&gt;jmock-junit4&lt;/artifactId&gt;
          &lt;version&gt;2.6.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.1&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.velocity&lt;/groupId&gt;
          &lt;artifactId&gt;velocity&lt;/artifactId&gt;
          &lt;version&gt;1.7&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the build is using gradle . I dont know how will that affect the changes either.</p>