Hi Lukas, I am fairly new to jOOQ, but it seems like I found a bug that is maybe related to this.
I am generating from an Oracle Schema using the "default schema" as output schema (empty <outputSchema> tag). When executing a stored procedure I get a ClassCastException: java.lang.ClassCastException: oracle.sql.STRUCT cannot be cast to de.test.jooq.udt.records.TestRecord at de.test.y.jooq.packages.pack_test.TestRetrieve.getTest(TestRetrieve.java:106) However when generation has run with: <inputSchema>TEST</inputSchema> <outputSchema>TEST</outputSchema> and Settings settings = new Settings().withRenderSchema(false); everything is fine. Is it a bug or am I missing something? Regards Dominik BTW: In the case where the Exception occurs setting: Settings settings = new Settings().withRenderSchema(false); Does also lead to the ClassCastException. On Friday, June 14, 2013 4:49:19 PM UTC+2, Lukas Eder wrote: > > Hi James, > > Thanks for reporting this. This is a bug. I have created #2522 for this. > https://github.com/jOOQ/jOOQ/issues/2522 > > This bug may be related to another bug that was fixed some time ago. > https://github.com/jOOQ/jOOQ/issues/1693 > > Cheers > Lukas > > > 2013/6/12 <[email protected] <javascript:>> > >> Hi, >> i have found a problem while mapping a different schema at runtime; the >> mapping doesn't work with udts (types and records). >> the piece of code involved in the mapping operation is the following >> >> DataSourceConnectionProviderFactory dsFactory = >> DataSourceConnectionProviderFactory.getInstance(config); >> ConnectionProvider cp = dsFactory.getDataSourceConnectionProvider(type, >> ds); >> Settings st = new Settings() >> .withRenderMapping(new RenderMapping() >> .withSchemata( >> new MappedSchema().withInput("DEV").withOutput("PRODUCTION"))); >> Configuration cfg = new >> DefaultConfiguration().set(cp).set(dialect).set(st); >> return DSL.using(cfg); >> >> The same problem occurs if classes are generated by the generation tool >> (input/output schema defined in configuration xml). >> >> Is this a bug or am I doing something wrong? >> >> thanks >> James >> >> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- 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/groups/opt_out.
