jOOQ generates a simple Java representation of your database schema. Every table, view, stored procedure, enum, UDT is a class. This plugin performs code generation as part of the Gradle build.
See the example project for an advanced build configuration. In this sample, the jOOQ generated code never has to be checked in. The Flyway database migrations are run against an H2 database, the jOOQ models generated from the schema, and the Java compiled / tested. An incremental build skips recompiling if no new migrations were added. The application can use the models at runtime to connect to a different database, e.g. MySQL. Unfortunately due to the Flyway plugin not providing an up-to-date check, the example unnecessarily regenerates the code.