Should it be possible to add the additional parameters to JOOQ Codegen XML as part of jdbc element ?
<jdbc> <driver></driver> <url>jdbc:postgresql://host:port/xxxx?ssl=true&sslfactory= org.postgresql.ssl.NonValidatingFactory;</url> <user>gtskstnfispdcz</user> <password>rEAqWJTm6ZbgMqrE0m688LyXHh</password> </jdbc> Why ? Because the XML reader implemented in JOOQ fails to read parameters attached with jdbc url and separated by "&" Creating a PostgreSQL JDBC connection with extra parameters causes a SAXParseException https://netbeans.org/bugzilla/show_bug.cgi?format=multiple&id=181133 My be it's time to use some alternate XML reader ? On Wednesday, October 9, 2013 7:27:41 PM UTC+5:30, Lukas Eder wrote: > > > > > 2013/10/9 Marko Topolnik <marko.t...@gmail.com <javascript:>> > >> >> >> On Wednesday, October 9, 2013 3:13:09 PM UTC+2, Lukas Eder wrote: >>> >>> >>> 2013/10/9 Marko Topolnik <marko.t...@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/**ma**nual/code-generation/schema-**ma** >>>>> pping/<http://www.jooq.org/doc/3.1/manual/code-generation/schema-mapping/> >>>>> >>>>> ... or at runtime: >>>>> http://www.jooq.org/doc/3.1/**ma**nual/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<https://github.com/jOOQ/jOOQ/issues/2772> >>> >> >> Thanks for that. I think my best option would be to just add a main >> method to my application which would do the code generation. I could run >> that from maven with the plain exec:java. >> > > True. > -- 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.