Registry / orm / jooq-codegen

jooq-codegen

JSON →
library3.21.2javamavenunverified

jOOQ's source code generator that generates Java classes from database schemas.

<dependency> <groupId>org.jooq</groupId> <artifactId>jooq-codegen</artifactId> <version>3.21.2</version> </dependency>
INSTALL
IMPORT
SIG · JOOQ-CODEGEN
J
jooq-codegen
ormjavav3.21.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GenerationTool
org.jooq.codegen.GenerationTool

Generates Java classes from a PostgreSQL database schema using jOOQ's GenerationTool.

import org.jooq.codegen.GenerationTool; import org.jooq.meta.jaxb.Configuration; public class Example { public static void main(String[] args) throws Exception { Configuration configuration = new Configuration() .withJdbc(new org.jooq.meta.jaxb.Jdbc() .withDriver("org.postgresql.Driver") .withUrl("jdbc:postgresql://localhost:5432/mydb") .withUser("user") .withPassword("password")) .withGenerator(new org.jooq.meta.jaxb.Generator() .withDatabase(new org.jooq.meta.jaxb.Database() .withName("org.jooq.meta.postgres.PostgresDatabase") .withIncludes(".*") .withExcludes("")) .withTarget(new org.jooq.meta.jaxb.Target() .withPackageName("com.example.generated") .withDirectory("src/main/java"))); GenerationTool.generate(configuration); System.out.println("Code generation completed."); } }
Debug
Known issues
breakingBreaking changes between jOOQ 3.x versions; check migration guides.
fix
Refer to jOOQ documentation for version-specific changes.
affects: >=3.0.0
Upgrade
Version history
3.21.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
Resources