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:
@@ -0,0 +1,13 @@
|
||||
# 08-column-precision
|
||||
# Hibernate ORM 7.4.14.Final, JDK 25, database PostgreSQL 17.11, JVM default zone Asia/Kolkata, java_time_use_direct_jdbc false (default)
|
||||
# written: 2026-06-15T14:00:00.123456789 (nanos .123456789); generated column types, then what came back
|
||||
instant_second_precision9 timestamp with time zone precision 6
|
||||
ldt_default timestamp without time zone precision 6
|
||||
ldt_precision9 timestamp without time zone precision 6
|
||||
ldt_second_precision3 timestamp without time zone precision 3
|
||||
ldt_second_precision9 timestamp without time zone precision 6
|
||||
default -> 2026-06-15T14:00:00.123457
|
||||
precision = 9 -> 2026-06-15T14:00:00.123457
|
||||
secondPrecision = 9 -> 2026-06-15T14:00:00.123457
|
||||
secondPrecision = 3 -> 2026-06-15T14:00:00.123
|
||||
Instant, secondPrecision = 9 -> 2026-06-15T14:00:00.123457Z
|
||||
Reference in New Issue
Block a user