Hi Lukas,

after some googleling i've found this on stackoverflow

http://stackoverflow.com/questions/11388838/groovy-markupbuilder-name-conflict/
11389034#11389034

if i change the groovy code to...

generate([:]) {
                pojos true
                daos true
                }

... the created XML is correct and pojos were created. I don't know what's 
going on behind 
the scenes. But it works for me now.

Cheers
Sascha

On Samstag, 5. Dezember 2015 13:22:37 CET Lukas Eder wrote:
> Hi Sascha,
> 
> From a high level, I'd say you're missing parentheses. You wrote:
> 
> generate() {
> 
>     pojos true
> 
>     daos true
> 
> }
> 
> I think it should be
> 
> generate() {
> 
>     pojos(true)
> 
>     daos(true)
> 
> }
> 
> But I'm rather inexperienced with Groovy's MarkupBuilder. Perhaps I'm
> missing something else. You might get a better answer on Stack Overflow for
> this...
> 
> Hope this helps,
> Lukas
> 
> 2015-12-05 12:04 GMT+01:00 Sascha Pfau <[email protected]>:
> > Hello Lukas,
> > 
> > 
> > 
> > i've some troubles with configuration generation for jooq codegen. The
> > generation of daos and pojos should be enabled. So the XML should look
> > like
> > this:
> > 
> > 
> > 
> > -- snip --
> > 
> > </jdbc>
> > 
> >  <generator>
> >  
> >    <database>
> >    
> >      <includes>.*</includes>
> >      <inputSchema>XXX</inputSchema>
> >    
> >    </database>
> > 
> > </generate>
> > 
> >     <pojos>true</pojos>
> > 
> > <daos>true</daos>
> > 
> >    </generate>
> > 
> > <target>
> > -- snip --
> > 
> > 
> > 
> > This is the builder i've used:
> > 
> > 
> > 
> > def xml = new groovy.xml.MarkupBuilder(writer)
> > 
> > .configuration('xmlns': 'http://www.jooq.org/xsd/jooq-codegen-3.7.0.xsd')
> > {
> > 
> > jdbc() {
> > 
> > driver('com.mysql.jdbc.Driver')
> > 
> > url('jdbc:mysql://server:3306/database')
> > 
> > user('test')
> > 
> > password('test')
> > 
> > }
> > 
> > generator() {
> > 
> > name('org.jooq.util.DefaultGenerator')

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to