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

hibernate, jpa

Solution

The problem was that a referenced entity had another reference to an entity and the relationship was NOT annotated by any of the `@OneToMany`-like annotations.

Problem

When executing a Criteria Query in hibernate, I get the following exception: ``` javax.persistence.PersistenceException: javax.persistence.PersistenceException: org.hibernate.type.SerializationException: could not deserialize: could not deserialize ``` What could be the problem? PS: although possibly not relevant, my hibernate version is hibernate-4.0.1 final.

Original source

Related problems