New versions: Dev (3.15) | Latest (3.14) | 3.13 | 3.12 | 3.11 | 3.10 | 3.9 | 3.8 | Old versions: 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 2.6
Code generation
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
While optional, source code generation is one of jOOQ's main assets if you wish to increase developer productivity. jOOQ's code generator takes your database schema and reverse-engineers it into a set of Java classes modelling tables, records, sequences, POJOs, DAOs, stored procedures, user-defined types and many more.
The essential ideas behind source code generation are these:
- Increased IDE support: Type your Java code directly against your database schema, with all type information available
- Type-safety: When your database schema changes, your generated code will change as well. Removing columns will lead to compilation errors, which you can detect early.
The following chapters will show how to configure the code generator and how to generate various artefacts.
Table of contents
- 6.1.
- Configuration and setup of the generator
- 6.2.
- Advanced generator configuration
- 6.3.
- Generated global artefacts
- 6.4.
- Generated tables
- 6.5.
- Generated records
- 6.6.
- Generated POJOs
- 6.7.
- Generated Interfaces
- 6.8.
- Generated DAOs
- 6.9.
- Generated sequences
- 6.10.
- Generated procedures
- 6.11.
- Generated UDTs
- 6.12.
- Master data and enumeration tables
- 6.13.
- Custom data types and type conversion
- 6.14.
- Mapping generated schemata and tables
The jOOQ User Manual : Code generation | previous : next |
Feedback
Do you have any feedback about this page? We'd love to hear it!