Hi Lukas,

Good day

About Configure jOOQ's code 
generator<http://www.jooq.org/manual/META/Configuration/#N10589>, 
 XSD <http://www.jooq.org/xsd/jooq-codegen-2.1.0.xsd>
I'm building 2nd project and connect to the same database and configure of 
JOOQ's code generator.

The different is Target > directory.

If I can add multi-Targe or multi-directories in the meantime, 
I just maintain one configure JOOQ's file and run once when database schema 
changed.

like this

 <targets>        

        <target>
                <packageName>com.pay.project1.jooq</packageName>
                <directory>../Project1/src</directory>
        </target>

        <target>
                <packageName>com.pay.project2.jooq</packageName>
                <directory>../Project2/src/main/java</directory>
        </target>

</targets>

And now, 
I use one script to run these 2 JOOQ's configure when my schema changed. ^^

Thanks!


-Pay


Reply via email to