2013/10/9 Marko Topolnik <marko.topol...@gmail.com> > > On Wednesday, October 9, 2013 2:22:12 PM UTC+2, Lukas Eder wrote: >> >> >> 2013/10/9 Marko Topolnik <marko.t...@gmail.com> >> >>> > >> By now I have integrated JOOQ into my nascent application and have the >>> Maven plugin configuration in place. However, now I'm facing difficulties >>> with per-developer configuration of database URL and credentials. Can these >>> be specified at the command line, via some -D options? >>> >> >> You can override schema and table names at code-generation time: >> http://www.jooq.org/doc/3.1/**manual/code-generation/schema-**mapping/<http://www.jooq.org/doc/3.1/manual/code-generation/schema-mapping/> >> >> ... or at runtime: >> http://www.jooq.org/doc/3.1/**manual/sql-building/dsl-** >> context/runtime-schema-**mapping/<http://www.jooq.org/doc/3.1/manual/sql-building/dsl-context/runtime-schema-mapping/> >> >> Database URL and credentials are outside of jOOQ's scope, as you're >> passing a pre-initialised JDBC Connection to jOOQ. >> > > > What I meant was, the code generator configuration includes database URL > credentials. I would like to specify these on the command line instead of > hard-wiring them into the git-committed pom.xml. >
This doesn't work right now. You can, however, configure jOOQ's code generator programmatically by passing a Configuration to the GenerationTool: org.jooq.util.GenerationTool.main(org.jooq.util.jaxb.Configuration configuration) That way, you can re-configure anything you want. I'm aware that this is a bit tedious, as you'll have to wrap the jOOQ code generation plugin in your own Maven plugin... I'll think about supporting command line options in a future release: https://github.com/jOOQ/jOOQ/issues/2772 Cheers Lukas -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.