All versions: 3.13 | Development versions: 3.14

Sources

Available in ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

With jOOQ 3.13, source code for views is generated by the code generator if available. This feature can be turned off using:

  • sources: The generation of all types of source code can be turned off globally
  • sourcesOnViews: The generation of source code on views can be turned off

The flags governing the generation of these annotations are:

XML configuration (standalone and Maven)

<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.13.0.xsd">
  <generator>
    <generate>
      <sources>true</sources>
      <sourcesOnViews>true</sourcesOnViews>
    </generate>
  </generator>
</configuration>

Programmatic configuration

new org.jooq.meta.jaxb.Configuration()
  .withGenerator(new Generator(
    .withGenerate(new Generate()
      .withSources(true)
      .withSourcesOnViews(true))));

Gradle configuration

myConfigurationName(sourceSets.main) {
  generator {
    generate {
      sources = true
      sourcesOnViews = true
    }
  }
}
The jOOQ Logo