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

前端 未结 6 1290
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:04

    In my case it was a problem with java.time.LocalDate from Java 8, and I forgot to assign a converter to that specific attribute.

    It seems that the newer Versions (5.2.1Final) has a built in converter, so that can help if your are not bound to a specific version.

    But checking the Annotations is definitely the way to go, but I would check them all.

提交回复
热议问题