I knew I have read somewhere something about this! Thanks for the links. Until you, or someone else, found time to implement this, I have to stick to my solution. Except someone else has an idea.
Cheers, Andreas On Thursday, April 26, 2012 11:45:51 AM UTC+2, Lukas Eder wrote: > > Hello, > > > Is there a possibility to let jOOQ generate the classes without having a > > connection to a database server? For example by supplying a definition > file? > > This has been requested before by Sergey Epik: > https://groups.google.com/d/msg/jooq-user/4-iZMVDtkGA/pKInJF5HYxIJ > > It is an open feature request on the roadmap: > https://sourceforge.net/apps/trac/jooq/ticket/875 > https://sourceforge.net/apps/trac/jooq/ticket/911 > > The idea is to generate the jOOQ-generated artefacts in two steps: > > 1. generate XML from the real schema > 2. generate Java code from XML > > The XML could then be checked in. > > > This works, but isn't very elegant. Most of the time someone forgets to > > update the H2 script when the MySQL schema changes and breaks the build. > > > > Is there a more elegant solution? (I don't want to check-in the > generated > > jOOQ classes). > > Currently, I'm not aware of a more elegant solution. But maybe someone > else on this group has solved this problem? > > Cheers > Lukas >
