| The reason seems to be the following line: at org.hibernate.type.descriptor.java.InstantJavaDescriptor.unwrap(InstantJavaDescriptor.java:70) /*
- Workaround for
HHH-13266 Closed (JDK-8061577).
- Ideally we'd want to use Timestamp.from(), but this won't always work.
- Timestamp.from() assumes the number of milliseconds since the epoch
- means the same thing in Timestamp and Instant, but it doesn't, in particular before 1900.
*/ return (X) Timestamp.valueOf( instant.atZone( ZoneId.systemDefault() ).toLocalDateTime() );
|