Class Generate

java.lang.Object
org.jooq.meta.jaxb.Generate
All Implemented Interfaces:
Serializable, XMLAppendable

public class Generate extends Object implements Serializable, XMLAppendable
Options strictly related to generated code.
See Also:
  • Field Details

    • indexes

      protected Boolean indexes
    • relations

      protected Boolean relations
    • sequenceFlags

      protected Boolean sequenceFlags
    • implicitJoinPathsToOne

      protected Boolean implicitJoinPathsToOne
    • implicitJoinPathsUseTableNameForUnambiguousFKs

      protected Boolean implicitJoinPathsUseTableNameForUnambiguousFKs
    • implicitJoinPathsAsKotlinProperties

      protected Boolean implicitJoinPathsAsKotlinProperties
    • deprecated

      protected Boolean deprecated
    • deprecationOnUnknownTypes

      protected Boolean deprecationOnUnknownTypes
    • instanceFields

      protected Boolean instanceFields
    • visibilityModifier

      protected VisibilityModifier visibilityModifier
    • generatedAnnotation

      protected Boolean generatedAnnotation
    • generatedAnnotationType

      protected GeneratedAnnotationType generatedAnnotationType
    • generatedAnnotationDate

      protected Boolean generatedAnnotationDate
    • nonnullAnnotation

      protected Boolean nonnullAnnotation
    • nonnullAnnotationType

      protected String nonnullAnnotationType
    • nullableAnnotation

      protected Boolean nullableAnnotation
    • nullableAnnotationType

      protected String nullableAnnotationType
    • constructorPropertiesAnnotation

      protected Boolean constructorPropertiesAnnotation
    • constructorPropertiesAnnotationOnPojos

      protected Boolean constructorPropertiesAnnotationOnPojos
    • constructorPropertiesAnnotationOnRecords

      protected Boolean constructorPropertiesAnnotationOnRecords
    • routines

      protected Boolean routines
    • sequences

      protected Boolean sequences
    • udts

      protected Boolean udts
    • queues

      protected Boolean queues
    • keys

      protected Boolean keys
    • tables

      protected Boolean tables
    • embeddables

      protected Boolean embeddables
    • records

      protected Boolean records
    • recordsImplementingRecordN

      protected Boolean recordsImplementingRecordN
    • enumsAsScalaSealedTraits

      protected Boolean enumsAsScalaSealedTraits
    • pojos

      protected Boolean pojos
    • pojosEqualsAndHashCode

      protected Boolean pojosEqualsAndHashCode
    • pojosToString

      protected Boolean pojosToString
    • pojosAsJavaRecordClasses

      protected Boolean pojosAsJavaRecordClasses
    • pojosAsScalaCaseClasses

      protected Boolean pojosAsScalaCaseClasses
    • pojosAsKotlinDataClasses

      protected Boolean pojosAsKotlinDataClasses
    • immutablePojos

      protected Boolean immutablePojos
    • serializablePojos

      protected Boolean serializablePojos
    • interfaces

      protected Boolean interfaces
    • immutableInterfaces

      protected Boolean immutableInterfaces
    • serializableInterfaces

      protected Boolean serializableInterfaces
    • daos

      protected Boolean daos
    • jooqVersionReference

      protected Boolean jooqVersionReference
    • jpaAnnotations

      protected Boolean jpaAnnotations
    • jpaVersion

      protected String jpaVersion
    • validationAnnotations

      protected Boolean validationAnnotations
    • springAnnotations

      protected Boolean springAnnotations
    • springDao

      protected Boolean springDao
    • kotlinSetterJvmNameAnnotationsOnIsPrefix

      protected Boolean kotlinSetterJvmNameAnnotationsOnIsPrefix
    • globalObjectReferences

      protected Boolean globalObjectReferences
    • globalCatalogReferences

      protected Boolean globalCatalogReferences
    • globalSchemaReferences

      protected Boolean globalSchemaReferences
    • globalDomainReferences

      protected Boolean globalDomainReferences
    • globalTableReferences

      protected Boolean globalTableReferences
    • globalSequenceReferences

      protected Boolean globalSequenceReferences
    • globalUDTReferences

      protected Boolean globalUDTReferences
    • globalRoutineReferences

      protected Boolean globalRoutineReferences
    • globalQueueReferences

      protected Boolean globalQueueReferences
    • globalLinkReferences

      protected Boolean globalLinkReferences
    • globalKeyReferences

      protected Boolean globalKeyReferences
    • globalIndexReferences

      protected Boolean globalIndexReferences
    • javadoc

      protected Boolean javadoc
    • comments

      protected Boolean comments
    • commentsOnCatalogs

      protected Boolean commentsOnCatalogs
    • commentsOnSchemas

      protected Boolean commentsOnSchemas
    • commentsOnTables

      protected Boolean commentsOnTables
    • commentsOnColumns

      protected Boolean commentsOnColumns
    • commentsOnEmbeddables

      protected Boolean commentsOnEmbeddables
    • commentsOnUDTs

      protected Boolean commentsOnUDTs
    • commentsOnAttributes

      protected Boolean commentsOnAttributes
    • commentsOnPackages

      protected Boolean commentsOnPackages
    • commentsOnRoutines

      protected Boolean commentsOnRoutines
    • commentsOnParameters

      protected Boolean commentsOnParameters
    • commentsOnSequences

      protected Boolean commentsOnSequences
    • commentsOnQueues

      protected Boolean commentsOnQueues
    • commentsOnKeys

      protected Boolean commentsOnKeys
    • sources

      protected Boolean sources
    • sourcesOnViews

      protected Boolean sourcesOnViews
    • fluentSetters

      protected Boolean fluentSetters
    • javaBeansGettersAndSetters

      protected Boolean javaBeansGettersAndSetters
    • varargSetters

      protected Boolean varargSetters
    • generatedSerialVersionUID

      protected GeneratedSerialVersionUID generatedSerialVersionUID
    • maxMembersPerInitialiser

      protected Integer maxMembersPerInitialiser
    • fullyQualifiedTypes

      protected String fullyQualifiedTypes
    • emptyCatalogs

      protected Boolean emptyCatalogs
    • emptySchemas

      protected Boolean emptySchemas
    • javaTimeTypes

      protected Boolean javaTimeTypes
    • spatialTypes

      protected Boolean spatialTypes
    • xmlTypes

      protected Boolean xmlTypes
    • jsonTypes

      protected Boolean jsonTypes
    • intervalTypes

      protected Boolean intervalTypes
    • newline

      protected String newline
    • indentation

      protected String indentation
    • printMarginForBlockComment

      protected Integer printMarginForBlockComment
    • textBlocks

      protected GeneratedTextBlocks textBlocks
  • Constructor Details

    • Generate

      public Generate()
  • Method Details

    • isIndexes

      public Boolean isIndexes()
      Generate index information.
      Returns:
      possible object is Boolean
    • setIndexes

      public void setIndexes(Boolean value)
      Generate index information.
      Parameters:
      value - allowed object is Boolean
    • isRelations

      public Boolean isRelations()
      Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features
      Returns:
      possible object is Boolean
    • setRelations

      public void setRelations(Boolean value)
      Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features
      Parameters:
      value - allowed object is Boolean
    • isSequenceFlags

      public Boolean isSequenceFlags()
      Sequence flags should be generated and used.
      Returns:
      possible object is Boolean
    • setSequenceFlags

      public void setSequenceFlags(Boolean value)
      Sequence flags should be generated and used.
      Parameters:
      value - allowed object is Boolean
    • isImplicitJoinPathsToOne

      public Boolean isImplicitJoinPathsToOne()
      Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)
      Returns:
      possible object is Boolean
    • setImplicitJoinPathsToOne

      public void setImplicitJoinPathsToOne(Boolean value)
      Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)
      Parameters:
      value - allowed object is Boolean
    • isImplicitJoinPathsUseTableNameForUnambiguousFKs

      public Boolean isImplicitJoinPathsUseTableNameForUnambiguousFKs()
      Whether names of unambiguous ForeignKeyDefinition should be based on the referenced TableDefinition.

      When a child table has only one ForeignKeyDefinition towards a parent table, then that path is "unambiguous." In that case, some GeneratorStrategy implementations may choose to use the parent table's TableDefinition for implementations of org.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of the ForeignKeyDefinition, e.g. for implicit join paths.

      This flag allows for turning off this default behaviour.

      Returns:
      possible object is Boolean
    • setImplicitJoinPathsUseTableNameForUnambiguousFKs

      public void setImplicitJoinPathsUseTableNameForUnambiguousFKs(Boolean value)
      Whether names of unambiguous ForeignKeyDefinition should be based on the referenced TableDefinition.

      When a child table has only one ForeignKeyDefinition towards a parent table, then that path is "unambiguous." In that case, some GeneratorStrategy implementations may choose to use the parent table's TableDefinition for implementations of org.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of the ForeignKeyDefinition, e.g. for implicit join paths.

      This flag allows for turning off this default behaviour.

      Parameters:
      value - allowed object is Boolean
    • isImplicitJoinPathsAsKotlinProperties

      public Boolean isImplicitJoinPathsAsKotlinProperties()
      Whether implicit join path constructors should be offered as properties in Kotlin.
      Returns:
      possible object is Boolean
    • setImplicitJoinPathsAsKotlinProperties

      public void setImplicitJoinPathsAsKotlinProperties(Boolean value)
      Whether implicit join path constructors should be offered as properties in Kotlin.
      Parameters:
      value - allowed object is Boolean
    • isDeprecated

      public Boolean isDeprecated()
      Generate deprecated code for backwards compatibility
      Returns:
      possible object is Boolean
    • setDeprecated

      public void setDeprecated(Boolean value)
      Generate deprecated code for backwards compatibility
      Parameters:
      value - allowed object is Boolean
    • isDeprecationOnUnknownTypes

      public Boolean isDeprecationOnUnknownTypes()
      Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them.
      Returns:
      possible object is Boolean
    • setDeprecationOnUnknownTypes

      public void setDeprecationOnUnknownTypes(Boolean value)
      Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them.
      Parameters:
      value - allowed object is Boolean
    • isInstanceFields

      @Deprecated public Boolean isInstanceFields()
      Deprecated.
      Returns:
      possible object is Boolean
    • setInstanceFields

      @Deprecated public void setInstanceFields(Boolean value)
      Deprecated.
      Parameters:
      value - allowed object is Boolean
    • getVisibilityModifier

      public VisibilityModifier getVisibilityModifier()
      The visibility modifier to be used with generated code.
    • setVisibilityModifier

      public void setVisibilityModifier(VisibilityModifier value)
      The visibility modifier to be used with generated code.
    • isGeneratedAnnotation

      public Boolean isGeneratedAnnotation()
      Generate the Generated annotation to indicate jOOQ version used for source code.
      Returns:
      possible object is Boolean
    • setGeneratedAnnotation

      public void setGeneratedAnnotation(Boolean value)
      Generate the Generated annotation to indicate jOOQ version used for source code.
      Parameters:
      value - allowed object is Boolean
    • getGeneratedAnnotationType

      public GeneratedAnnotationType getGeneratedAnnotationType()
      Generate the Generated annotation to indicate jOOQ version used for source code.
    • setGeneratedAnnotationType

      public void setGeneratedAnnotationType(GeneratedAnnotationType value)
      Generate the Generated annotation to indicate jOOQ version used for source code.
    • isGeneratedAnnotationDate

      public Boolean isGeneratedAnnotationDate()
      Whether the Generated annotation should include the date attribute.
      Returns:
      possible object is Boolean
    • setGeneratedAnnotationDate

      public void setGeneratedAnnotationDate(Boolean value)
      Whether the Generated annotation should include the date attribute.
      Parameters:
      value - allowed object is Boolean
    • isNonnullAnnotation

      public Boolean isNonnullAnnotation()
      Whether non-nullable items should be annotated with the annotation type specified in nonnullAnnotationType. In SQL and by consequence in jOOQ, non-nullability cannot be guaranteed statically. There may still be some cases (e.g. after unions, outer joins, etc.) where a normally non-null value turns out to be null!
      Returns:
      possible object is Boolean
    • setNonnullAnnotation

      public void setNonnullAnnotation(Boolean value)
      Whether non-nullable items should be annotated with the annotation type specified in nonnullAnnotationType. In SQL and by consequence in jOOQ, non-nullability cannot be guaranteed statically. There may still be some cases (e.g. after unions, outer joins, etc.) where a normally non-null value turns out to be null!
      Parameters:
      value - allowed object is Boolean
    • getNonnullAnnotationType

      public String getNonnullAnnotationType()
      Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nonnull type.
    • setNonnullAnnotationType

      public void setNonnullAnnotationType(String value)
      Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nonnull type.
    • isNullableAnnotation

      public Boolean isNullableAnnotation()
      Whether nullable items should be annotated with the annotation type specified in nullableAnnotationType. Unlike nonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.
      Returns:
      possible object is Boolean
    • setNullableAnnotation

      public void setNullableAnnotation(Boolean value)
      Whether nullable items should be annotated with the annotation type specified in nullableAnnotationType. Unlike nonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.
      Parameters:
      value - allowed object is Boolean
    • getNullableAnnotationType

      public String getNullableAnnotationType()
      Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nullable type.
    • setNullableAnnotationType

      public void setNullableAnnotationType(String value)
      Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nullable type.
    • isConstructorPropertiesAnnotation

      public Boolean isConstructorPropertiesAnnotation()
      Generate the ConstructorProperties annotation on generated POJOs and/or records.
      Returns:
      possible object is Boolean
    • setConstructorPropertiesAnnotation

      public void setConstructorPropertiesAnnotation(Boolean value)
      Generate the ConstructorProperties annotation on generated POJOs and/or records.
      Parameters:
      value - allowed object is Boolean
    • isConstructorPropertiesAnnotationOnPojos

      public Boolean isConstructorPropertiesAnnotationOnPojos()
      Generate the ConstructorProperties annotation on generated POJOs (defaults to true if constructorPropertiesAnnotation is active).
      Returns:
      possible object is Boolean
    • setConstructorPropertiesAnnotationOnPojos

      public void setConstructorPropertiesAnnotationOnPojos(Boolean value)
      Generate the ConstructorProperties annotation on generated POJOs (defaults to true if constructorPropertiesAnnotation is active).
      Parameters:
      value - allowed object is Boolean
    • isConstructorPropertiesAnnotationOnRecords

      public Boolean isConstructorPropertiesAnnotationOnRecords()
      Generate the ConstructorProperties annotation on generated records (defaults to true if constructorPropertiesAnnotation is active).
      Returns:
      possible object is Boolean
    • setConstructorPropertiesAnnotationOnRecords

      public void setConstructorPropertiesAnnotationOnRecords(Boolean value)
      Generate the ConstructorProperties annotation on generated records (defaults to true if constructorPropertiesAnnotation is active).
      Parameters:
      value - allowed object is Boolean
    • isRoutines

      public Boolean isRoutines()
      Generate Routine classes.
      Returns:
      possible object is Boolean
    • setRoutines

      public void setRoutines(Boolean value)
      Generate Routine classes.
      Parameters:
      value - allowed object is Boolean
    • isSequences

      public Boolean isSequences()
      Generate Sequence classes.
      Returns:
      possible object is Boolean
    • setSequences

      public void setSequences(Boolean value)
      Generate Sequence classes.
      Parameters:
      value - allowed object is Boolean
    • isUdts

      public Boolean isUdts()
      Generate UDT classes.
      Returns:
      possible object is Boolean
    • setUdts

      public void setUdts(Boolean value)
      Generate UDT classes.
      Parameters:
      value - allowed object is Boolean
    • isQueues

      public Boolean isQueues()
      Generate Queue classes.
      Returns:
      possible object is Boolean
    • setQueues

      public void setQueues(Boolean value)
      Generate Queue classes.
      Parameters:
      value - allowed object is Boolean
    • isLinks

      public Boolean isLinks()
      Generate database Link classes.
      Returns:
      possible object is Boolean
    • setLinks

      public void setLinks(Boolean value)
      Generate database Link classes.
      Parameters:
      value - allowed object is Boolean
    • isKeys

      public Boolean isKeys()
      Generate Key classes.
      Returns:
      possible object is Boolean
    • setKeys

      public void setKeys(Boolean value)
      Generate Key classes.
      Parameters:
      value - allowed object is Boolean
    • isTables

      public Boolean isTables()
      Generate Table classes.
      Returns:
      possible object is Boolean
    • setTables

      public void setTables(Boolean value)
      Generate Table classes.
      Parameters:
      value - allowed object is Boolean
    • isEmbeddables

      public Boolean isEmbeddables()
      Generate embeddable classes.
      Returns:
      possible object is Boolean
    • setEmbeddables

      public void setEmbeddables(Boolean value)
      Generate embeddable classes.
      Parameters:
      value - allowed object is Boolean
    • isRecords

      public Boolean isRecords()
      Generate TableRecord classes.
      Returns:
      possible object is Boolean
    • setRecords

      public void setRecords(Boolean value)
      Generate TableRecord classes.
      Parameters:
      value - allowed object is Boolean
    • isRecordsImplementingRecordN

      public Boolean isRecordsImplementingRecordN()
      Generate TableRecord classes that implement Record[N] super types
      Returns:
      possible object is Boolean
    • setRecordsImplementingRecordN

      public void setRecordsImplementingRecordN(Boolean value)
      Generate TableRecord classes that implement Record[N] super types
      Parameters:
      value - allowed object is Boolean
    • isEnumsAsScalaSealedTraits

      @Deprecated public Boolean isEnumsAsScalaSealedTraits()
      Deprecated.
      Activate the legacy Scala sealed trait enum emulation
      Returns:
      possible object is Boolean
    • setEnumsAsScalaSealedTraits

      @Deprecated public void setEnumsAsScalaSealedTraits(Boolean value)
      Deprecated.
      Activate the legacy Scala sealed trait enum emulation
      Parameters:
      value - allowed object is Boolean
    • isPojos

      public Boolean isPojos()
      Generate POJOs.
      Returns:
      possible object is Boolean
    • setPojos

      public void setPojos(Boolean value)
      Generate POJOs.
      Parameters:
      value - allowed object is Boolean
    • isPojosEqualsAndHashCode

      public Boolean isPojosEqualsAndHashCode()
      Generate basic equals() and hashCode() methods in POJOs.
      Returns:
      possible object is Boolean
    • setPojosEqualsAndHashCode

      public void setPojosEqualsAndHashCode(Boolean value)
      Generate basic equals() and hashCode() methods in POJOs.
      Parameters:
      value - allowed object is Boolean
    • isPojosToString

      public Boolean isPojosToString()
      Generate basic toString() methods in POJOs.
      Returns:
      possible object is Boolean
    • setPojosToString

      public void setPojosToString(Boolean value)
      Generate basic toString() methods in POJOs.
      Parameters:
      value - allowed object is Boolean
    • isPojosAsJavaRecordClasses

      public Boolean isPojosAsJavaRecordClasses()
      Generate POJOs as records, when using the JavaGenerator.
      Returns:
      possible object is Boolean
    • setPojosAsJavaRecordClasses

      public void setPojosAsJavaRecordClasses(Boolean value)
      Generate POJOs as records, when using the JavaGenerator.
      Parameters:
      value - allowed object is Boolean
    • isPojosAsScalaCaseClasses

      public Boolean isPojosAsScalaCaseClasses()
      Generate POJOs as case classes, when using the ScalaGenerator.
      Returns:
      possible object is Boolean
    • setPojosAsScalaCaseClasses

      public void setPojosAsScalaCaseClasses(Boolean value)
      Generate POJOs as case classes, when using the ScalaGenerator.
      Parameters:
      value - allowed object is Boolean
    • isPojosAsKotlinDataClasses

      public Boolean isPojosAsKotlinDataClasses()
      Generate POJOs as data classes, when using the KotlinGenerator.
      Returns:
      possible object is Boolean
    • setPojosAsKotlinDataClasses

      public void setPojosAsKotlinDataClasses(Boolean value)
      Generate POJOs as data classes, when using the KotlinGenerator.
      Parameters:
      value - allowed object is Boolean
    • isImmutablePojos

      public Boolean isImmutablePojos()
      Generate immutable POJOs.
      Returns:
      possible object is Boolean
    • setImmutablePojos

      public void setImmutablePojos(Boolean value)
      Generate immutable POJOs.
      Parameters:
      value - allowed object is Boolean
    • isSerializablePojos

      public Boolean isSerializablePojos()
      Generate serializable POJOs.
      Returns:
      possible object is Boolean
    • setSerializablePojos

      public void setSerializablePojos(Boolean value)
      Generate serializable POJOs.
      Parameters:
      value - allowed object is Boolean
    • isInterfaces

      public Boolean isInterfaces()
      Generated interfaces to be implemented by records and/or POJOs.
      Returns:
      possible object is Boolean
    • setInterfaces

      public void setInterfaces(Boolean value)
      Generated interfaces to be implemented by records and/or POJOs.
      Parameters:
      value - allowed object is Boolean
    • isImmutableInterfaces

      public Boolean isImmutableInterfaces()
      Generate immutable interfaces.
      Returns:
      possible object is Boolean
    • setImmutableInterfaces

      public void setImmutableInterfaces(Boolean value)
      Generate immutable interfaces.
      Parameters:
      value - allowed object is Boolean
    • isSerializableInterfaces

      public Boolean isSerializableInterfaces()
      Generate serializable interfaces.
      Returns:
      possible object is Boolean
    • setSerializableInterfaces

      public void setSerializableInterfaces(Boolean value)
      Generate serializable interfaces.
      Parameters:
      value - allowed object is Boolean
    • isDaos

      public Boolean isDaos()
      Generate DAOs.
      Returns:
      possible object is Boolean
    • setDaos

      public void setDaos(Boolean value)
      Generate DAOs.
      Parameters:
      value - allowed object is Boolean
    • isJooqVersionReference

      public Boolean isJooqVersionReference()
      Generate references to the most up to date minor release in Constants to produce compilation errors if an outdated runtime library is being used.
      Returns:
      possible object is Boolean
    • setJooqVersionReference

      public void setJooqVersionReference(Boolean value)
      Generate references to the most up to date minor release in Constants to produce compilation errors if an outdated runtime library is being used.
      Parameters:
      value - allowed object is Boolean
    • isJpaAnnotations

      public Boolean isJpaAnnotations()
      Annotate POJOs and Records with JPA annotations.
      Returns:
      possible object is Boolean
    • setJpaAnnotations

      public void setJpaAnnotations(Boolean value)
      Annotate POJOs and Records with JPA annotations.
      Parameters:
      value - allowed object is Boolean
    • getJpaVersion

      public String getJpaVersion()
      Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default.
    • setJpaVersion

      public void setJpaVersion(String value)
      Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default.
    • isValidationAnnotations

      public Boolean isValidationAnnotations()
      Annotate POJOs and Records with JSR-303 validation annotations
      Returns:
      possible object is Boolean
    • setValidationAnnotations

      public void setValidationAnnotations(Boolean value)
      Annotate POJOs and Records with JSR-303 validation annotations
      Parameters:
      value - allowed object is Boolean
    • isSpringAnnotations

      public Boolean isSpringAnnotations()
      Annotate DAOs with useful spring annotations such as @Repository or @Autowired.
      Returns:
      possible object is Boolean
    • setSpringAnnotations

      public void setSpringAnnotations(Boolean value)
      Annotate DAOs with useful spring annotations such as @Repository or @Autowired.
      Parameters:
      value - allowed object is Boolean
    • isSpringDao

      public Boolean isSpringDao()
      Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.
      Returns:
      possible object is Boolean
    • setSpringDao

      public void setSpringDao(Boolean value)
      Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.
      Parameters:
      value - allowed object is Boolean
    • isKotlinSetterJvmNameAnnotationsOnIsPrefix

      public Boolean isKotlinSetterJvmNameAnnotationsOnIsPrefix()
      Workaround for Kotlin generating setX() setters instead of setIsX() in byte code for mutable properties called isX.
      Returns:
      possible object is Boolean
    • setKotlinSetterJvmNameAnnotationsOnIsPrefix

      public void setKotlinSetterJvmNameAnnotationsOnIsPrefix(Boolean value)
      Workaround for Kotlin generating setX() setters instead of setIsX() in byte code for mutable properties called isX.
      Parameters:
      value - allowed object is Boolean
    • isGlobalObjectReferences

      public Boolean isGlobalObjectReferences()
      Turn off generation of all global object references.
      Returns:
      possible object is Boolean
    • setGlobalObjectReferences

      public void setGlobalObjectReferences(Boolean value)
      Turn off generation of all global object references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalCatalogReferences

      public Boolean isGlobalCatalogReferences()
      Turn off generation of global catalog references.
      Returns:
      possible object is Boolean
    • setGlobalCatalogReferences

      public void setGlobalCatalogReferences(Boolean value)
      Turn off generation of global catalog references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalSchemaReferences

      public Boolean isGlobalSchemaReferences()
      Turn off generation of global schema references.
      Returns:
      possible object is Boolean
    • setGlobalSchemaReferences

      public void setGlobalSchemaReferences(Boolean value)
      Turn off generation of global schema references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalDomainReferences

      public Boolean isGlobalDomainReferences()
      Turn off generation of global domain references.
      Returns:
      possible object is Boolean
    • setGlobalDomainReferences

      public void setGlobalDomainReferences(Boolean value)
      Turn off generation of global domain references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalTableReferences

      public Boolean isGlobalTableReferences()
      Turn off generation of global table references.
      Returns:
      possible object is Boolean
    • setGlobalTableReferences

      public void setGlobalTableReferences(Boolean value)
      Turn off generation of global table references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalSequenceReferences

      public Boolean isGlobalSequenceReferences()
      Turn off generation of global sequence references.
      Returns:
      possible object is Boolean
    • setGlobalSequenceReferences

      public void setGlobalSequenceReferences(Boolean value)
      Turn off generation of global sequence references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalUDTReferences

      public Boolean isGlobalUDTReferences()
      Turn off generation of global UDT references.
      Returns:
      possible object is Boolean
    • setGlobalUDTReferences

      public void setGlobalUDTReferences(Boolean value)
      Turn off generation of global UDT references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalRoutineReferences

      public Boolean isGlobalRoutineReferences()
      Turn off generation of global routine references.
      Returns:
      possible object is Boolean
    • setGlobalRoutineReferences

      public void setGlobalRoutineReferences(Boolean value)
      Turn off generation of global routine references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalQueueReferences

      public Boolean isGlobalQueueReferences()
      Turn off generation of global queue references.
      Returns:
      possible object is Boolean
    • setGlobalQueueReferences

      public void setGlobalQueueReferences(Boolean value)
      Turn off generation of global queue references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalLinkReferences

      public Boolean isGlobalLinkReferences()
      Turn off generation of global database link references.
      Returns:
      possible object is Boolean
    • setGlobalLinkReferences

      public void setGlobalLinkReferences(Boolean value)
      Turn off generation of global database link references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalKeyReferences

      public Boolean isGlobalKeyReferences()
      Turn off generation of global key references.
      Returns:
      possible object is Boolean
    • setGlobalKeyReferences

      public void setGlobalKeyReferences(Boolean value)
      Turn off generation of global key references.
      Parameters:
      value - allowed object is Boolean
    • isGlobalIndexReferences

      public Boolean isGlobalIndexReferences()
      Turn off generation of global index references.
      Returns:
      possible object is Boolean
    • setGlobalIndexReferences

      public void setGlobalIndexReferences(Boolean value)
      Turn off generation of global index references.
      Parameters:
      value - allowed object is Boolean
    • isJavadoc

      public Boolean isJavadoc()
      Turn off generation of Javadoc on all objects.
      Returns:
      possible object is Boolean
    • setJavadoc

      public void setJavadoc(Boolean value)
      Turn off generation of Javadoc on all objects.
      Parameters:
      value - allowed object is Boolean
    • isComments

      public Boolean isComments()
      Turn off generation of all SQL comments as Javadoc on all objects.
      Returns:
      possible object is Boolean
    • setComments

      public void setComments(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all objects.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnCatalogs

      public Boolean isCommentsOnCatalogs()
      Turn off generation of all SQL comments as Javadoc on all catalogs.
      Returns:
      possible object is Boolean
    • setCommentsOnCatalogs

      public void setCommentsOnCatalogs(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all catalogs.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnSchemas

      public Boolean isCommentsOnSchemas()
      Turn off generation of all SQL comments as Javadoc on all schemas.
      Returns:
      possible object is Boolean
    • setCommentsOnSchemas

      public void setCommentsOnSchemas(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all schemas.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnTables

      public Boolean isCommentsOnTables()
      Turn off generation of all SQL comments as Javadoc on all tables.
      Returns:
      possible object is Boolean
    • setCommentsOnTables

      public void setCommentsOnTables(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all tables.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnColumns

      public Boolean isCommentsOnColumns()
      Turn off generation of all SQL comments as Javadoc on all columns.
      Returns:
      possible object is Boolean
    • setCommentsOnColumns

      public void setCommentsOnColumns(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all columns.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnEmbeddables

      public Boolean isCommentsOnEmbeddables()
      Turn off generation of all SQL comments as Javadoc on all embeddables.
      Returns:
      possible object is Boolean
    • setCommentsOnEmbeddables

      public void setCommentsOnEmbeddables(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all embeddables.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnUDTs

      public Boolean isCommentsOnUDTs()
      Turn off generation of all SQL comments as Javadoc on all UDTs.
      Returns:
      possible object is Boolean
    • setCommentsOnUDTs

      public void setCommentsOnUDTs(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all UDTs.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnAttributes

      public Boolean isCommentsOnAttributes()
      Turn off generation of all SQL comments as Javadoc on all attributes.
      Returns:
      possible object is Boolean
    • setCommentsOnAttributes

      public void setCommentsOnAttributes(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all attributes.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnPackages

      public Boolean isCommentsOnPackages()
      Turn off generation of all SQL comments as Javadoc on all packages.
      Returns:
      possible object is Boolean
    • setCommentsOnPackages

      public void setCommentsOnPackages(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all packages.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnRoutines

      public Boolean isCommentsOnRoutines()
      Turn off generation of all SQL comments as Javadoc on all routines.
      Returns:
      possible object is Boolean
    • setCommentsOnRoutines

      public void setCommentsOnRoutines(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all routines.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnParameters

      public Boolean isCommentsOnParameters()
      Turn off generation of all SQL comments as Javadoc on all parameters.
      Returns:
      possible object is Boolean
    • setCommentsOnParameters

      public void setCommentsOnParameters(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all parameters.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnSequences

      public Boolean isCommentsOnSequences()
      Turn off generation of all SQL comments as Javadoc on all sequences.
      Returns:
      possible object is Boolean
    • setCommentsOnSequences

      public void setCommentsOnSequences(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all sequences.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnLinks

      public Boolean isCommentsOnLinks()
      Turn off generation of all SQL comments as Javadoc on all links.
      Returns:
      possible object is Boolean
    • setCommentsOnLinks

      public void setCommentsOnLinks(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all links.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnQueues

      public Boolean isCommentsOnQueues()
      Turn off generation of all SQL comments as Javadoc on all queues.
      Returns:
      possible object is Boolean
    • setCommentsOnQueues

      public void setCommentsOnQueues(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all queues.
      Parameters:
      value - allowed object is Boolean
    • isCommentsOnKeys

      public Boolean isCommentsOnKeys()
      Turn off generation of all SQL comments as Javadoc on all keys.
      Returns:
      possible object is Boolean
    • setCommentsOnKeys

      public void setCommentsOnKeys(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all keys.
      Parameters:
      value - allowed object is Boolean
    • isSources

      public Boolean isSources()
      Turn off generation of all source code on all object types.
      Returns:
      possible object is Boolean
    • setSources

      public void setSources(Boolean value)
      Turn off generation of all source code on all object types.
      Parameters:
      value - allowed object is Boolean
    • isSourcesOnViews

      public Boolean isSourcesOnViews()
      Turn off generation of all source code on all views.
      Returns:
      possible object is Boolean
    • setSourcesOnViews

      public void setSourcesOnViews(Boolean value)
      Turn off generation of all source code on all views.
      Parameters:
      value - allowed object is Boolean
    • isFluentSetters

      public Boolean isFluentSetters()
      Generate fluent setters in records, POJOs, interfaces.
      Returns:
      possible object is Boolean
    • setFluentSetters

      public void setFluentSetters(Boolean value)
      Generate fluent setters in records, POJOs, interfaces.
      Parameters:
      value - allowed object is Boolean
    • isJavaBeansGettersAndSetters

      public Boolean isJavaBeansGettersAndSetters()
      Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.

      If this flag is set to false, then:

      • Column name : X_INDEX
      • Attribute name: xIndex
      • Getter name : getXIndex()
      • Setter name : setXIndex()

      If this flag is set to true, then:

      • Getter name : getxIndex()
      • Setter name : setxIndex()

      Custom GeneratorStrategy implementations are unaffected

      Returns:
      possible object is Boolean
    • setJavaBeansGettersAndSetters

      public void setJavaBeansGettersAndSetters(Boolean value)
      Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.

      If this flag is set to false, then:

      • Column name : X_INDEX
      • Attribute name: xIndex
      • Getter name : getXIndex()
      • Setter name : setXIndex()

      If this flag is set to true, then:

      • Getter name : getxIndex()
      • Setter name : setxIndex()

      Custom GeneratorStrategy implementations are unaffected

      Parameters:
      value - allowed object is Boolean
    • isVarargSetters

      public Boolean isVarargSetters()
      Generate varargs setters for array types for convenience.

      This may lead to compilation warnings in current Java versions.

      Returns:
      possible object is Boolean
    • setVarargSetters

      public void setVarargSetters(Boolean value)
      Generate varargs setters for array types for convenience.

      This may lead to compilation warnings in current Java versions.

      Parameters:
      value - allowed object is Boolean
    • getGeneratedSerialVersionUID

      public GeneratedSerialVersionUID getGeneratedSerialVersionUID()
      The serial version UID to be generated in all files.
    • setGeneratedSerialVersionUID

      public void setGeneratedSerialVersionUID(GeneratedSerialVersionUID value)
      The serial version UID to be generated in all files.
    • getMaxMembersPerInitialiser

      public Integer getMaxMembersPerInitialiser()
      The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.
    • setMaxMembersPerInitialiser

      public void setMaxMembersPerInitialiser(Integer value)
      The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.
    • getFullyQualifiedTypes

      public String getFullyQualifiedTypes()
      A regular expression matching all the types in generated code that should be fully qualified.

      This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying java\.lang\..*

    • setFullyQualifiedTypes

      public void setFullyQualifiedTypes(String value)
      A regular expression matching all the types in generated code that should be fully qualified.

      This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying java\.lang\..*

    • isEmptyCatalogs

      public Boolean isEmptyCatalogs()
      Whether empty catalogs (e.g. empty because of configurations) should still be generated.
      Returns:
      possible object is Boolean
    • setEmptyCatalogs

      public void setEmptyCatalogs(Boolean value)
      Whether empty catalogs (e.g. empty because of configurations) should still be generated.
      Parameters:
      value - allowed object is Boolean
    • isEmptySchemas

      public Boolean isEmptySchemas()
      Whether empty schemas (e.g. empty because of configurations) should still be generated.
      Returns:
      possible object is Boolean
    • setEmptySchemas

      public void setEmptySchemas(Boolean value)
      Whether empty schemas (e.g. empty because of configurations) should still be generated.
      Parameters:
      value - allowed object is Boolean
    • isJavaTimeTypes

      public Boolean isJavaTimeTypes()
      A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.

      This flag is ignored in the commercial Java 6 distribution of jOOQ 3.9+

      Returns:
      possible object is Boolean
    • setJavaTimeTypes

      public void setJavaTimeTypes(Boolean value)
      A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.

      This flag is ignored in the commercial Java 6 distribution of jOOQ 3.9+

      Parameters:
      value - allowed object is Boolean
    • isSpatialTypes

      public Boolean isSpatialTypes()
      A flag indicating whether the spatial type support should be enabled.
      Returns:
      possible object is Boolean
    • setSpatialTypes

      public void setSpatialTypes(Boolean value)
      A flag indicating whether the spatial type support should be enabled.
      Parameters:
      value - allowed object is Boolean
    • isXmlTypes

      public Boolean isXmlTypes()
      A flag indicating whether the XML type support should be enabled.
      Returns:
      possible object is Boolean
    • setXmlTypes

      public void setXmlTypes(Boolean value)
      A flag indicating whether the XML type support should be enabled.
      Parameters:
      value - allowed object is Boolean
    • isJsonTypes

      public Boolean isJsonTypes()
      A flag indicating whether the JSON type support should be enabled.
      Returns:
      possible object is Boolean
    • setJsonTypes

      public void setJsonTypes(Boolean value)
      A flag indicating whether the JSON type support should be enabled.
      Parameters:
      value - allowed object is Boolean
    • isIntervalTypes

      public Boolean isIntervalTypes()
      A flag indicating whether the INTERVAL type support should be enabled.
      Returns:
      possible object is Boolean
    • setIntervalTypes

      public void setIntervalTypes(Boolean value)
      A flag indicating whether the INTERVAL type support should be enabled.
      Parameters:
      value - allowed object is Boolean
    • getNewline

      public String getNewline()
      The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n
    • setNewline

      public void setNewline(String value)
      The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n
    • getIndentation

      public String getIndentation()
      The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t
    • setIndentation

      public void setIndentation(String value)
      The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t
    • getPrintMarginForBlockComment

      public Integer getPrintMarginForBlockComment()
      The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is 0.
    • setPrintMarginForBlockComment

      public void setPrintMarginForBlockComment(Integer value)
      The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is 0.
    • getTextBlocks

      public GeneratedTextBlocks getTextBlocks()
      Whether to generate String in text block format.
    • setTextBlocks

      public void setTextBlocks(GeneratedTextBlocks value)
      Whether to generate String in text block format.
    • withIndexes

      public Generate withIndexes(Boolean value)
      Generate index information.
    • withRelations

      public Generate withRelations(Boolean value)
      Primary key / foreign key relations should be generated and used. This is a prerequisite for various advanced features
    • withSequenceFlags

      public Generate withSequenceFlags(Boolean value)
      Sequence flags should be generated and used.
    • withImplicitJoinPathsToOne

      public Generate withImplicitJoinPathsToOne(Boolean value)
      Generate implicit join path constructors on generated tables for outgoing foreign key relationships (to-one relationships)
    • withImplicitJoinPathsUseTableNameForUnambiguousFKs

      public Generate withImplicitJoinPathsUseTableNameForUnambiguousFKs(Boolean value)
      Whether names of unambiguous ForeignKeyDefinition should be based on the referenced TableDefinition.

      When a child table has only one ForeignKeyDefinition towards a parent table, then that path is "unambiguous." In that case, some GeneratorStrategy implementations may choose to use the parent table's TableDefinition for implementations of org.jooq.codegen.GeneratorStrategy#getJavaMethodName(Definition), instead of the ForeignKeyDefinition, e.g. for implicit join paths.

      This flag allows for turning off this default behaviour.

    • withImplicitJoinPathsAsKotlinProperties

      public Generate withImplicitJoinPathsAsKotlinProperties(Boolean value)
      Whether implicit join path constructors should be offered as properties in Kotlin.
    • withDeprecated

      public Generate withDeprecated(Boolean value)
      Generate deprecated code for backwards compatibility
    • withDeprecationOnUnknownTypes

      public Generate withDeprecationOnUnknownTypes(Boolean value)
      Generate deprecation annotations on references to unknown data types. This helps identifying columns, attributes, and parameters, which may not be usable through jOOQ API, without adding custom data type bindings to them.
    • withInstanceFields

      public Generate withInstanceFields(Boolean value)
      Deprecated.
    • withVisibilityModifier

      public Generate withVisibilityModifier(VisibilityModifier value)
      The visibility modifier to be used with generated code.
    • withGeneratedAnnotation

      public Generate withGeneratedAnnotation(Boolean value)
      Generate the Generated annotation to indicate jOOQ version used for source code.
    • withGeneratedAnnotationType

      public Generate withGeneratedAnnotationType(GeneratedAnnotationType value)
      Generate the Generated annotation to indicate jOOQ version used for source code.
    • withGeneratedAnnotationDate

      public Generate withGeneratedAnnotationDate(Boolean value)
      Whether the Generated annotation should include the date attribute.
    • withNonnullAnnotation

      public Generate withNonnullAnnotation(Boolean value)
      Whether non-nullable items should be annotated with the annotation type specified in nonnullAnnotationType. In SQL and by consequence in jOOQ, non-nullability cannot be guaranteed statically. There may still be some cases (e.g. after unions, outer joins, etc.) where a normally non-null value turns out to be null!
    • withNonnullAnnotationType

      public Generate withNonnullAnnotationType(String value)
      Specify the qualified annotation name for all non-nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nonnull type.
    • withNullableAnnotation

      public Generate withNullableAnnotation(Boolean value)
      Whether nullable items should be annotated with the annotation type specified in nullableAnnotationType. Unlike nonnullAnnotation, nullability can be guaranteed as in SQL, and by consequence in jOOQ, every column expression can be made nullable using some SQL operation.
    • withNullableAnnotationType

      public Generate withNullableAnnotationType(String value)
      Specify the qualified annotation name for all nullable items in generated code, defaulting to the JSR-305 javax.annotation.Nullable type.
    • withConstructorPropertiesAnnotation

      public Generate withConstructorPropertiesAnnotation(Boolean value)
      Generate the ConstructorProperties annotation on generated POJOs and/or records.
    • withConstructorPropertiesAnnotationOnPojos

      public Generate withConstructorPropertiesAnnotationOnPojos(Boolean value)
      Generate the ConstructorProperties annotation on generated POJOs (defaults to true if constructorPropertiesAnnotation is active).
    • withConstructorPropertiesAnnotationOnRecords

      public Generate withConstructorPropertiesAnnotationOnRecords(Boolean value)
      Generate the ConstructorProperties annotation on generated records (defaults to true if constructorPropertiesAnnotation is active).
    • withRoutines

      public Generate withRoutines(Boolean value)
      Generate Routine classes.
    • withSequences

      public Generate withSequences(Boolean value)
      Generate Sequence classes.
    • withUdts

      public Generate withUdts(Boolean value)
      Generate UDT classes.
    • withQueues

      public Generate withQueues(Boolean value)
      Generate Queue classes.
    • withLinks

      public Generate withLinks(Boolean value)
      Generate database Link classes.
    • withKeys

      public Generate withKeys(Boolean value)
      Generate Key classes.
    • withTables

      public Generate withTables(Boolean value)
      Generate Table classes.
    • withEmbeddables

      public Generate withEmbeddables(Boolean value)
      Generate embeddable classes.
    • withRecords

      public Generate withRecords(Boolean value)
      Generate TableRecord classes.
    • withRecordsImplementingRecordN

      public Generate withRecordsImplementingRecordN(Boolean value)
      Generate TableRecord classes that implement Record[N] super types
    • withEnumsAsScalaSealedTraits

      public Generate withEnumsAsScalaSealedTraits(Boolean value)
      Deprecated.
      Activate the legacy Scala sealed trait enum emulation
    • withPojos

      public Generate withPojos(Boolean value)
      Generate POJOs.
    • withPojosEqualsAndHashCode

      public Generate withPojosEqualsAndHashCode(Boolean value)
      Generate basic equals() and hashCode() methods in POJOs.
    • withPojosToString

      public Generate withPojosToString(Boolean value)
      Generate basic toString() methods in POJOs.
    • withPojosAsJavaRecordClasses

      public Generate withPojosAsJavaRecordClasses(Boolean value)
      Generate POJOs as records, when using the JavaGenerator.
    • withPojosAsScalaCaseClasses

      public Generate withPojosAsScalaCaseClasses(Boolean value)
      Generate POJOs as case classes, when using the ScalaGenerator.
    • withPojosAsKotlinDataClasses

      public Generate withPojosAsKotlinDataClasses(Boolean value)
      Generate POJOs as data classes, when using the KotlinGenerator.
    • withImmutablePojos

      public Generate withImmutablePojos(Boolean value)
      Generate immutable POJOs.
    • withSerializablePojos

      public Generate withSerializablePojos(Boolean value)
      Generate serializable POJOs.
    • withInterfaces

      public Generate withInterfaces(Boolean value)
      Generated interfaces to be implemented by records and/or POJOs.
    • withImmutableInterfaces

      public Generate withImmutableInterfaces(Boolean value)
      Generate immutable interfaces.
    • withSerializableInterfaces

      public Generate withSerializableInterfaces(Boolean value)
      Generate serializable interfaces.
    • withDaos

      public Generate withDaos(Boolean value)
      Generate DAOs.
    • withJooqVersionReference

      public Generate withJooqVersionReference(Boolean value)
      Generate references to the most up to date minor release in Constants to produce compilation errors if an outdated runtime library is being used.
    • withJpaAnnotations

      public Generate withJpaAnnotations(Boolean value)
      Annotate POJOs and Records with JPA annotations.
    • withJpaVersion

      public Generate withJpaVersion(String value)
      Version of JPA specification is to be used to generate version-specific annotations. If it is omitted, the latest version is used by default.
    • withValidationAnnotations

      public Generate withValidationAnnotations(Boolean value)
      Annotate POJOs and Records with JSR-303 validation annotations
    • withSpringAnnotations

      public Generate withSpringAnnotations(Boolean value)
      Annotate DAOs with useful spring annotations such as @Repository or @Autowired.
    • withSpringDao

      public Generate withSpringDao(Boolean value)
      Generate an AbstractSpringDAOImpl as a base class for other DAO classes, containing @Transactional annotations, etc.
    • withKotlinSetterJvmNameAnnotationsOnIsPrefix

      public Generate withKotlinSetterJvmNameAnnotationsOnIsPrefix(Boolean value)
      Workaround for Kotlin generating setX() setters instead of setIsX() in byte code for mutable properties called isX.
    • withGlobalObjectReferences

      public Generate withGlobalObjectReferences(Boolean value)
      Turn off generation of all global object references.
    • withGlobalCatalogReferences

      public Generate withGlobalCatalogReferences(Boolean value)
      Turn off generation of global catalog references.
    • withGlobalSchemaReferences

      public Generate withGlobalSchemaReferences(Boolean value)
      Turn off generation of global schema references.
    • withGlobalDomainReferences

      public Generate withGlobalDomainReferences(Boolean value)
      Turn off generation of global domain references.
    • withGlobalTableReferences

      public Generate withGlobalTableReferences(Boolean value)
      Turn off generation of global table references.
    • withGlobalSequenceReferences

      public Generate withGlobalSequenceReferences(Boolean value)
      Turn off generation of global sequence references.
    • withGlobalUDTReferences

      public Generate withGlobalUDTReferences(Boolean value)
      Turn off generation of global UDT references.
    • withGlobalRoutineReferences

      public Generate withGlobalRoutineReferences(Boolean value)
      Turn off generation of global routine references.
    • withGlobalQueueReferences

      public Generate withGlobalQueueReferences(Boolean value)
      Turn off generation of global queue references.
    • withGlobalLinkReferences

      public Generate withGlobalLinkReferences(Boolean value)
      Turn off generation of global database link references.
    • withGlobalKeyReferences

      public Generate withGlobalKeyReferences(Boolean value)
      Turn off generation of global key references.
    • withGlobalIndexReferences

      public Generate withGlobalIndexReferences(Boolean value)
      Turn off generation of global index references.
    • withJavadoc

      public Generate withJavadoc(Boolean value)
      Turn off generation of Javadoc on all objects.
    • withComments

      public Generate withComments(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all objects.
    • withCommentsOnCatalogs

      public Generate withCommentsOnCatalogs(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all catalogs.
    • withCommentsOnSchemas

      public Generate withCommentsOnSchemas(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all schemas.
    • withCommentsOnTables

      public Generate withCommentsOnTables(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all tables.
    • withCommentsOnColumns

      public Generate withCommentsOnColumns(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all columns.
    • withCommentsOnEmbeddables

      public Generate withCommentsOnEmbeddables(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all embeddables.
    • withCommentsOnUDTs

      public Generate withCommentsOnUDTs(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all UDTs.
    • withCommentsOnAttributes

      public Generate withCommentsOnAttributes(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all attributes.
    • withCommentsOnPackages

      public Generate withCommentsOnPackages(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all packages.
    • withCommentsOnRoutines

      public Generate withCommentsOnRoutines(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all routines.
    • withCommentsOnParameters

      public Generate withCommentsOnParameters(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all parameters.
    • withCommentsOnSequences

      public Generate withCommentsOnSequences(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all sequences.
    • withCommentsOnLinks

      public Generate withCommentsOnLinks(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all links.
    • withCommentsOnQueues

      public Generate withCommentsOnQueues(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all queues.
    • withCommentsOnKeys

      public Generate withCommentsOnKeys(Boolean value)
      Turn off generation of all SQL comments as Javadoc on all keys.
    • withSources

      public Generate withSources(Boolean value)
      Turn off generation of all source code on all object types.
    • withSourcesOnViews

      public Generate withSourcesOnViews(Boolean value)
      Turn off generation of all source code on all views.
    • withFluentSetters

      public Generate withFluentSetters(Boolean value)
      Generate fluent setters in records, POJOs, interfaces.
    • withJavaBeansGettersAndSetters

      public Generate withJavaBeansGettersAndSetters(Boolean value)
      Modify DefaultGeneratorStrategy behaviour to generate getters and setters in JavaBeans style in records, POJOs, interfaces.

      If this flag is set to false, then:

      • Column name : X_INDEX
      • Attribute name: xIndex
      • Getter name : getXIndex()
      • Setter name : setXIndex()

      If this flag is set to true, then:

      • Getter name : getxIndex()
      • Setter name : setxIndex()

      Custom GeneratorStrategy implementations are unaffected

    • withVarargSetters

      public Generate withVarargSetters(Boolean value)
      Generate varargs setters for array types for convenience.

      This may lead to compilation warnings in current Java versions.

    • withGeneratedSerialVersionUID

      public Generate withGeneratedSerialVersionUID(GeneratedSerialVersionUID value)
      The serial version UID to be generated in all files.
    • withMaxMembersPerInitialiser

      public Generate withMaxMembersPerInitialiser(Integer value)
      The maximum number of members per initialiser, to prevent reaching the 64kb byte code per method limit in generated code.
    • withFullyQualifiedTypes

      public Generate withFullyQualifiedTypes(String value)
      A regular expression matching all the types in generated code that should be fully qualified.

      This can be useful if you have a database object that generates a String class, and you want to avoid naming clashes with the java.lang package by specifying java\.lang\..*

    • withEmptyCatalogs

      public Generate withEmptyCatalogs(Boolean value)
      Whether empty catalogs (e.g. empty because of configurations) should still be generated.
    • withEmptySchemas

      public Generate withEmptySchemas(Boolean value)
      Whether empty schemas (e.g. empty because of configurations) should still be generated.
    • withJavaTimeTypes

      public Generate withJavaTimeTypes(Boolean value)
      A flag indicating whether Java 8's java.time types should be used by the source code generator, rather than JDBC's java.sql types.

      This flag is ignored in the commercial Java 6 distribution of jOOQ 3.9+

    • withSpatialTypes

      public Generate withSpatialTypes(Boolean value)
      A flag indicating whether the spatial type support should be enabled.
    • withXmlTypes

      public Generate withXmlTypes(Boolean value)
      A flag indicating whether the XML type support should be enabled.
    • withJsonTypes

      public Generate withJsonTypes(Boolean value)
      A flag indicating whether the JSON type support should be enabled.
    • withIntervalTypes

      public Generate withIntervalTypes(Boolean value)
      A flag indicating whether the INTERVAL type support should be enabled.
    • withNewline

      public Generate withNewline(String value)
      The newline characters to be used in generated code. Whitespace characters can be used, e.g. \n, \r\n
    • withIndentation

      public Generate withIndentation(String value)
      The indentation characters to be used in generated code. If unspecified, an idiomatic default indentation of the language will be used (4 spaces in Java, 2 spaces in Scala). Whitespace characters can be used, e.g. \t
    • withPrintMarginForBlockComment

      public Generate withPrintMarginForBlockComment(Integer value)
      The print margin to apply to generated Javadoc and other block comments, for automatic line wrapping. The feature is turned off if the print margin is 0.
    • withTextBlocks

      public Generate withTextBlocks(GeneratedTextBlocks value)
      Whether to generate String in text block format.
    • appendTo

      public final void appendTo(XMLBuilder builder)
      Specified by:
      appendTo in interface XMLAppendable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object