Been using Jooq for a while, but this is the first time we've tried it with 
Synonyms and Views.   The problem I'm running into is that the generator is 
not picking up on the synonyms (although the views work fine).   Does the 
generator not support synonyms?

Here's the gradle code I'm using to run the generator:

// Task for generating jOOQ model objects
task generate << {
   def writer = new StringWriter()
   def xml = new groovy.xml.MarkupBuilder(writer)
         .configuration('xmlns': 
'http://www.jooq.org/xsd/jooq-codegen-3.6.0.xsd') {
      jdbc() {
         driver('com.microsoft.sqlserver.jdbc.SQLServerDriver')
         url('jdbc:sqlserver://10.2.100.42:1433;databaseName=test_sandbox')
         schema('dbo')
         user('test_user')
         password('XXXX')
      }
      generator() {
         database() {
         }
         generate() {
         }
         target() {
            packageName('org.advanced.testapi.v2.jooq')
            directory('src/main/java')
         }
      }
   }

   // Run the code generator
   // ----------------------
   org.jooq.util.GenerationTool.main(
         javax.xml.bind.JAXB.unmarshal(
               new StringReader(writer.toString()),
               org.jooq.util.jaxb.Configuration.class
         )
   )
}



-- 
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.

Reply via email to