Hi Samir,

This is intentional. There is already a table literal DATE_FORMAT, which
would collide with the column literal DATE_FORMAT.

You can use jOOQ's generator strategies to rename either the table literal,
or the column literal:

- Programmatic:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy
- Configurative:
http://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy

Hope this helps,
Lukas

2016-05-13 1:34 GMT+02:00 Samir Faci <[email protected]>:

> I'm not sure if this is a bug or was brought up before (I hope not).
>
> But if I have a table named
>
> DATE_FORMAT
>
> Which also includes a column named DATE_FORMAT
>
> Then the autogen code seems to add an underscore to the column name.
>
> For example:
>
>         List<String> supportedDateFormats = dslContext.
>                 selectDistinct(DATE_FORMAT.DATE_FORMAT_)
>                 .from(DATE_FORMAT)
>                 .orderBy(DATE_FORMAT.DATE_FORMAT_)
>                 .fetchInto(String.class);
>
> ​
>
> is this intentional? Or is there something I can do on my end
> configuration wise to avoid this pattern
>
>
> --
> Thank you
> Samir Faci
>
> --
> 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.

Reply via email to