java - How to make JOOQ generate both enum types and custom types? -
i using jooq-codegen 3.6.1.
when generate code generates enum types fine. jooq stops generating enums when add custom type so:
<customtypes> <customtype> <name>localdatetime</name> <type>java.time.localdatetime</type> <converter>com.example.util.localdatetimeconverter</converter> </customtype> </customtypes> <forcedtypes> <forcedtype> <name>localdatetime</name> <types>timestamp</types> </forcedtype> </forcedtypes>
the localdatetime data type generated fine in case. can't seem find way generate both enums , custom data type.
it seems jooq not detect enums when there custom data type, log message:
info: enums fetched : 0 (0 included, 0 excluded)
any ideas?
i believe bug in jooq, reported here: https://groups.google.com/forum/#!topic/jooq-user/enpvgqtvww0
as workaround avoid using <types> filter , use <expression> filter select columns.
Comments
Post a Comment