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>
</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')
database() {
name('org.jooq.util.mysql.MySQLDatabase')
includes('.*')
inputSchema('XXX')
}
generate() {
pojos true
daos true
}
target() {
packageName('de.XXX')
directory('src/db')
}
}
}
But the MarkupBuilder creates always the following wrong XML code
<configuration xmlns='http://www.jooq.org/xsd/jooq-codegen-3.7.0.xsd'>
<daos>true</daos> <target> <packageName>de.XXX</packageName>
<directory>src/db</directory> </target> </generator> </configuration>
pojos and daos are not enclosed by generator tag and so the code generation
ignore it and
does not create any pojos or daos. Any hints what's wrong?
Cheers
MrPeacock
--
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.
signature.asc
Description: This is a digitally signed message part.
