As documented (and implemented), {{hibernate.timezone.default_storage}} affects {{ZonedDateTime}} and {{OffsetDateTime}}, but not {{OffsetTime}}.
As a result, if you set {{hibernate.timezone.default_storage=NORMALIZE_UTC}} or {{hibernate.timezone.default_storage=COLUMN}} or {{hibernate.timezone.default_storage=NATIVE}}, it won’t affect {{OffsetTime}} storage properties , which will still be mapped to a column of type {{TIME}} (not {{TIME WITH TIMEZONE}}), and will still be normalized to {{hibernate.jdbc.time_zone}} or the JVM timezone (not UTC).
That’s at least surprising, and I think getting {{OffsetTime}} in line with {{ZonedDateTime}} and {{OffsetDateTime}} would improve the situation. |
|