Hello Sergey, As this is probably of general interest, I CC'ed this mail to the jOOQ user group
> I've found idea in "DBRE Add-On" to separate introspection phase and code > generation phase. > During introspection it generates xml file (example attached). This file > contains schema metadata. > You can keep it in source control. Code generation phase take it from some > folder (for example, src/main/jooq) and generate code ( > target/generated-sources/jooq). > What do you think, it it good? If I understand you correctly, you'd like to use spring DBRE for database reverse-engineering (schema data -> XML), and then jOOQ to generate source code (XML -> Java). Is that right? It should be fairly simple to extend org.jooq.util.AbstractDatabase in jooq-meta and provide the code generator with meta data taken from XML rather than from the database. This isn't only useful for Spring, but also for Hibernate's hbm.xml mapping files! I have filed this as a feature request, which will probably be included in the next release: https://sourceforge.net/apps/trac/jooq/ticket/875 Have you started implementing such an extension? Cheers Lukas
