Decided to update to Hibernate 5 to remove the existing Date to LocalDateTime conversion. I installed hibernate-java8 artifact from Maven. Then I replaced my hibernate entity date time to
@Column (name = "mis_a_jour_au", nullable = false)
@Temporal (TemporalType.TIMESTAMP)
private LocalDateTime misAJourAu;
@Column (name = "envoi_au", nullable = false)
@Temporal (TemporalType.TIMESTAMP)
private LocalDateTime envoiAu;
This exception was thrown
org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property
If I remove the @Temporal then the exception becomes
ClassCastException: java.util.Date cannot be cast to java.time.LocalDateTime
I thought Java 8 + Hibernate 5 supports LocalDateTime? Please advise.