| The legacy Hibernate org.hibernate.Criteria API should be considered deprecated. New development should focus on the JPA javax.persistence.criteria.CriteriaQuery API. [1] That said, it sounds like the non-Serializable bits should be declared as transient. If you provide an pull request with an update to org.hibernate.test.criteria.CriteriaQueryTest that reproduces your issue and fix, I'll look into it. You can see that CriteriaQueryTest#testDetachedCriteria uses SerializationHelper for serializing/deserializing a DetachedCriteria. [1] https://docs.jboss.org/hibernate/orm/5.0/userGuide/en-US/html_single/#appendix-legacy-criteria |