I am generating a JOOQ record set from a schema using JOOQ 3.6.4 with Java 8.
Some of the tables are referenced data that are similarly structured, say that they have ID, CODE, and VALUE columns (they can have other columns, but they all have at least these columns).
In my non-JOOQ code, I have a "ReferenceData" interface that defines accessors that correspond to the code that JOOQ generates for these three columns. I want to tell JOOQ to add the "implements ReferenceData" sentence to the recording objects that it generates (the code that JOOQ already generates will automatically implement the interfaces).
I do not ask JOOQ to automatically detect interfaces, I am fine with listing which interfaces each table should implement in the XML configuration.
Question 1 : is there a way to configure JOOQ to generate an implementation proposal without writing a custom generator class?
If I need to write a custom generator class, I still want to determine which table entries implement which interfaces are in the XML configuration.
Question 2 : Is there an example somewhere to define user data in XML, which is passed to the user generator class?
source share