A new PR https://github.com/hibernate/hibernate-orm/pull/1226
as discussed wiht Steve Ebersole OffsetDateTime values should be compared using OffsetDateTime#isEqual().
assertEquals(OffsetDateTime.of(1, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC), event.startDate);
fails
but
assertThat(OffsetDateTime.of(1, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC).isEqual(event.startDate), is(true));
does not fail.
The PR fix the problem related with OffsetDateTime#Comparator checking the LocalDateTime. 2 new Comparators are introduced OffsetDateTimeComparator, ZonedDateTimeComparator used respectively by OffsetDateTimeType and ZonedDateTimeType