All versions: 3.11 | 3.10 | 3.9 | Development versions: 3.12


The code generator supports a set of annotations on generated code, which can be turned on using the following flags. These annotations include:

The flags governing the generation of these annotations are:

XML configuration (standalone and Maven)

<configuration xmlns="">

Programmatic configuration

  .withGenerator(new Generator(
    .withGenerate(new Generate()

Gradle configuration

myConfigurationName(sourceSets.main) {
  generator {
    generate {
      jpaAnnotations = true
      validationAnnotations = true
      springAnnotations = true
The jOOQ Logo