This is a good question, and should probably also be included in the jOOQ manual !
The question is not strictly related to jOOQ, but to the generation of the source code in general (for example, also when using XJC to generate JAXB-annotated Java code from XSD). Some people prefer to compile the source code for part of the "main" source code, others prefer to keep it separate. In essence, these ideas underlie each approach:
Saving things separately (e.g. target / generated sources)
- The only "source of truth" is the database schema. Their copies are never stored in source form, only in binary form.
- . , (, ), . , .
(, src/main/java)
. .