Add date-time module: Instant vs LocalDateTime vs OffsetDateTime vs ZonedDateTime round-tripped across JVM time zones on H2 and PostgreSQL

Hibernate 7.4.14.Final (plus an 8.0.0.Beta4 preview run), H2 2.5.252, PostgreSQL 17.11 in Docker.
Same-JVM and cross-zone round trips, @TimeZoneStorage modes, DST gap/overlap, precision
(precision vs secondPrecision), hibernate.jdbc.time_zone, java_time_use_direct_jdbc default flip.
Supersedes the date/time experiments of docs/13 (7.4.5); chapter 13 is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
This commit is contained in:
2026-10-29 00:56:54 +00:00
committed by Claude
co-authored by Claude Sonnet 5.5
parent c9faf35e61
commit ef2d2aa8ea
149 changed files with 2374 additions and 0 deletions
@@ -0,0 +1,16 @@
# 05-ddl
# Hibernate ORM 8.0.0.Beta4, JDK 25, database PostgreSQL 17.11, JVM default zone America/New_York, java_time_use_direct_jdbc true (default)
# column types Hibernate generated (information_schema.columns)
event odt_column_col_offset integer precision null
event id bigint precision null
event instant_col timestamp with time zone precision 6
event ldt_col timestamp without time zone precision 6
event odt_column_col timestamp with time zone precision 6
event odt_default_col timestamp with time zone precision 6
event odt_native_col timestamp with time zone precision 6
event odt_normalize_col timestamp without time zone precision 6
event odt_normalize_utc_col timestamp with time zone precision 6
zoned_event zdt_column_col_offset integer precision null
zoned_event id bigint precision null
zoned_event zdt_column_col timestamp with time zone precision 6
zoned_event zdt_default_col timestamp with time zone precision 6