java.lang.ClassCastException: org.jpwh.model.complexschemas.naturalforeignkey.User cannot be cast to java.io.Serializable

Hibernate JIRA | Christian Bauer | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.jpwh.model.complexschemas.naturalforeignkey.User cannot be cast to java.io.Serializable

      at org.hibernate.type.ManyToOneType.hydrate()
    2. Hibernate
      Loader.loadFromResultSet
      1. org.hibernate.type.ManyToOneType.hydrate(ManyToOneType.java:157)
      2. org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2807)
      3. org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1545)
      3 frames