I have jooq create TableImpl POJO name CONNECTOR with variable joda.time.DateTime
and jsonschema2pojo create POJO name JsonConnector with variable java.time.Instant
how to convert jooq select result fetch to jsonschema2pojo create obj
List <JsonConnector> list = ctx.select(
CONNECTOR.INT1,
CONNECTOR.STRING1,
CONNECTOR.STRING2,
CONNECTOR.STRING3,
CONNECTOR.STRING4,
CONNECTOR.JODA_TIME_DATETIME))
.from(CONNECTOR)
.fetchInto(JsonConnector.class);
jooq fetchInto jsonschema2pojo everything simple type convert is ok, but pojo type org.joda.time.DateTime to type java.time.Instant
that will throw exception org.jooq.exception.MappingException: An error ocurred when mapping record to class JsonConnector
how can I write function like
TableField<ConnectorRecord, Instant> convertDateTimeToInstant(TableField<ConnectorRecord, DateTime> datatimeField)
or something good method
Thanks