From the javadoc of Timestamp:
Complying applications will use Time and Timestamp in their entities instead of java.util.Date, so we'd better support that. Also, judging from the presence of a java.sql.Timestamp#toLocalDateTime method and a java.sql.Time#toLocalTime method, these classes should be converted to a LocalDateTime and LocalTime, respectively. So just using the same bridge as java.util.Date will not work. |