javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize

前端 未结 6 1291
Happy的楠姐
Happy的楠姐 2021-02-19 04:32

When executing a Criteria Query in hibernate, I get the following exception:

javax.persistence.PersistenceException: javax.persistence.PersistenceException: org.         


        
6条回答
  •  日久生厌
    2021-02-19 05:01

    In my case it was a problem with java.time.LocalDateTime from Java 8.

    Fix with adding dependency:

    
    	org.hibernate
    	hibernate-java8
    		

提交回复
热议问题