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.");
}
}
Audit
Dependencies
No dependency data recorded yet.