Hi Ben, Thank you very much for reporting.
That workaround certainly works well for this one case. If you want a more thorough solution, a generator strategy is the way to go: - Programmatic: http://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy - XML: http://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy Apart from that, what you reported is also a bug. The [INV NO] "overload" should be disambiguated by jOOQ's code generator. This is usually done by appending another underscore to the end. I've created an issue for this: https://github.com/jOOQ/jOOQ/issues/4702 Cheers, Lukas 2015-10-29 11:19 GMT+01:00 Ben Hood <[email protected]>: > I think I might have found a workaround: > > <includeExcludeColumns>true</includeExcludeColumns> > <excludes>inv_no</excludes> > > > On Thu, Oct 29, 2015 at 9:58 AM, Ben Hood <[email protected]> wrote: > > Hi Lukas, > > > > I have a table in schema that is causing compilation to fail. > > > > Unhelpfully, this table has 2 columns: > > > > INV NO > > Inv_no > > > > which cause the following code to be generated: > > > > public final TableField<TblFooRecord, String> INV_NO = > > createField("INV NO", org.jooq.impl.SQLDataType.VARCHAR.length(50), > > this, ""); > > > > public final TableField<TblFooRecord, String> INV_NO = > > createField("Inv_no", org.jooq.impl.SQLDataType.VARCHAR.length(50), > > this, ""); > > > > Unfortunately this causes the names of the two generated column fields > > to collide. Is there maybe a way to configure the generator not > > auto-capitalize the column name? Or can configure some kind of > > execution for this particular column? > > > > The env details are: > > > > Java 7 > > JOOQ 3.6.4 > > SQL Server 2008 > > Maven code generator plugin > > > > Cheers, > > > > Ben > > -- > 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. > -- 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.
