ALTER TABLE `products` ADD `test_jooq` int(11) NOT NULL DEFAULT '0';
import the schema to your (mysql) database.
complete the jdbc settings in jooq-config.xml.
(IntelliJ idea) create a new run configuration named JOOQ GenerationTool, set the Main Class to org.jooq.util.GenerationTool, and Program Arguments to jooq-config.xml
run the newly created run configuration.
now the necessary code should be generated in the target folder.
A simple workflow (not best practice)
create the schema.sql.
jooq-config.xml
.run configuration
namedJOOQ GenerationTool
, set theMain Class
toorg.jooq.util.GenerationTool
, andProgram Arguments
tojooq-config.xml
run configuration
.target
folder.observe the generated code: