4

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

s1m0nw1
  • 76,759
  • 17
  • 167
  • 196
Syed Shahul
  • 481
  • 4
  • 16
  • 1
    You have to write `customType` and `forcedTypes` if you want JodaTime types code generated. This means you'll probably want to standardize on a column naming convention, which is a benefit in the end. To avoid timezone issues, in my case I wrote only `Instant`, `LocalDate`, and `LocalDateTime` converters. – Ben Manes Aug 26 '13 at 10:23
  • @BenManes: Would be interesting to read a blog post / case study about that experience! – Lukas Eder Aug 26 '13 at 12:56

1 Answers1

2

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:

Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509