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.