Does Jooq support Joda-Time?

2019-06-24 04:32发布

问题:

We are looking for date time support for different timezones. It seems Hibernate supports Joda time, any idea does JOOQ supports the same?

回答1:

jOOQ by itself does not support Joda-Time, nor any other third-party data type. But you can easily configure the jOOQ code generator to rewrite data types through custom converters. This is documented here:

  • http://www.jooq.org/doc/latest/manual/sql-execution/fetching/data-type-conversion/
  • http://www.jooq.org/doc/latest/manual/code-generation/custom-data-types/