New versions: Dev (3.15) | Latest (3.14) | 3.13

Sources

Applies to ✅ 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 (standalone and maven)
Programmatic
Gradle
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.13.0.xsd">
  <generator>
    <generate>
      <sources>true</sources>
      <sourcesOnViews>true</sourcesOnViews>
    </generate>
  </generator>
</configuration>
new org.jooq.meta.jaxb.Configuration()
  .withGenerator(
    new Generate()
      .withSources(true)
      .withSourcesOnViews(true)
  )
myConfigurationName(sourceSets.main) {
  generator {
    generate {
      sources = true
      sourcesOnViews = true
    }
  }
}

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo