Code generation seems to work correctly in fact on the log I read:
myschema.customtype to <priority>-
2147483648</priority><userType>org.jooq.postgres.extensions.types.OffsetDateTimeRange</userType><binding>org.jooq.postgres.extensions.bindings.OffsetDateTimeRangeBinding</binding><includeTypes>tstzrange</includeTypes><nullability>ALL</nullability><objectType>ALL</objectType>
and I have the java Domain:
public static final Domain<OffsetDateTimeRange> CUSTOMTYPE = Internal.createDomain(
schema()
, DSL.name("timeperiod")
, org.jooq.impl.DefaultDataType.getDefaultDataType("\"myschema\".\"tstzrange\"")
, new OffsetDateTimeRangeBinding()
);
It's not clear to me if I have to configure something else to have OffsetDateTimeRange when querying on columns which uses my customtype as dataType, or if it's even possible.
For instance a query like "Result<org.jooq.Record> r = dsl.fetch("select * from mytable");", in which column1 is of type "customtype", it shows Pgobject as column1's data type.
Thanks in advance,
Francesco