Yes, this is a known issue and it will be fixed with jOOQ 3.5.0:
https://github.com/jOOQ/jOOQ/issues/3488

Right now, you can circumvent this kind of issue by implementing your own
generator strategy as documented here:
-
http://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy/
-
http://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy/

Hope this helps,
Lukas

2014-09-16 21:50 GMT+02:00 <[email protected]>:

> I have a view in my database which includes two description fields.  One
> is 'description' and the other is 'Description'.
>
> This is fine in Postgresql, but when everything is capitalised with the
> code generation I end up with two DESCRIPTION as below:
>
>     /**
>      * The column <code>public.V_Racks.description</code>.
>      */
>     public final
> org.jooq.TableField<test.generated.tables.records.VRacksRecord,
> java.lang.String> DESCRIPTION = createField("description",
> org.jooq.impl.SQLDataType.VARCHAR.length(128), this, "");
>
>     /**
>      * The column <code>public.V_Racks.Description</code>.
>      */
>     public final
> org.jooq.TableField<test.generated.tables.records.VRacksRecord,
> java.lang.String> DESCRIPTION = createField("Description",
> org.jooq.impl.SQLDataType.VARCHAR.length(128), this, "");
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
>     at test.generated.Tables.<clinit>(Tables.java:84)
>     at javaapplication1.JavaApplication1.main(JavaApplication1.java:40)
> Caused by: java.lang.RuntimeException: Uncompilable source code - variable
> DESCRIPTION is already defined in class test.generated.tables.VRacks
>
> I'll just have to change my field names in the view so that they are
> unique.  This use case is undoubtedly rare.
>
> --
> 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