PostgreSQL 日期转换为 Java 日期而不是 LocalDate

PostgreSQL date converted to Java Date instead of LocalDate

使用 JOOQ 3.10.1,我相信代码生成器的 javaTimeTypes 标志默认打开。

我在 PostgreSQL 数据库中有一个 table,其中有一个 date 列和一个 time with time zone 列:

我在这里遗漏了什么吗?

Using JOOQ 3.10.1, I believe that the javaTimeTypes flag is on by default for the code generator.

规格如下:https://www.jooq.org/xsd/jooq-codegen-3.10.0.xsd

<element name="javaTimeTypes" type="boolean" default="false" minOccurs="0" maxOccurs="1">..

所以,不,它默认没有打开。

the time with time zone column becomes an OffsetDateTime in the record class, as expected.

那是因为没有其他类型可以有意义地表示 time with time zone 数据类型。