No Dialect mapping for JDBC type: AttributeConverter and OffsetDateTime

Description

Using Entity

with ImportType

and AttributeConverter<ImportTime, OffsetDateTime>

left me with the following Exception when trying to save the Entity to the DB

Using the debugger, I finally ended up in Class org.hibernate.type.descriptor.sql.JdbcTypeJavaClassMappings, which seems not to define a Mapping

I have also noted the following log message:

Weird enough, using the OffsetDateTime type directly in the Entity (rather than my hand craftet ImportRecord) and leaving out the ImportTimeAttributeConverter completely, everything works fine.

I have also tried to provide yet another AttributeConverter<OffsetDateTime, Timestamp>, but that didn't change the behaviour (I thought, I might just have to stack AttributeConverter on top of each other).

Any ideas? Wrong usage or missing setting? Or anything else?

Thanks a lot.
Stefan

Environment

SpringBoot 2.1.9 (tried with 2.3.0 as well)
Hibernate 5.3.12 (SpringBoot 2.3.0 brings 5.4.15)
H2 (1.4.199)
openjdk version "11" 2018-09-25 OpenJDK Runtime Environment 18.9 (build 11+28) OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
Windows 10

Assignee

Unassigned

Reporter

Stefan Schilling

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Minor
Configure