java.lang.ClassCastException: org.hibernate.ejb.metamodel.SingularAttributeImpl cannot be cast to javax.persistence.metamodel.ManagedType

Hibernate JIRA | scLee | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [HHH-5792] Unable to JOIN embedded objects in Criteria API - Hibernate JIRA

    atlassian.net | 1 year ago
    java.lang.ClassCastException: org.hibernate.ejb.metamodel.SingularAttributeImpl cannot be cast to javax.persistence.metamodel.ManagedType
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.hibernate.ejb.metamodel.SingularAttributeImpl cannot be cast to javax.persistence.metamodel.ManagedType

      at org.hibernate.ejb.criteria.path.AbstractFromImpl.locateManagedType()
    2. Hibernate EJB
      AbstractFromImpl.join
      1. org.hibernate.ejb.criteria.path.AbstractFromImpl.locateManagedType(AbstractFromImpl.java:151)
      2. org.hibernate.ejb.criteria.path.AbstractFromImpl.locateAttributeInternal(AbstractFromImpl.java:145)
      3. org.hibernate.ejb.criteria.path.AbstractPathImpl.locateAttribute(AbstractPathImpl.java:216)
      4. org.hibernate.ejb.criteria.path.AbstractFromImpl.join(AbstractFromImpl.java:449)
      5. org.hibernate.ejb.criteria.path.AbstractFromImpl.join(AbstractFromImpl.java:433)
      5 frames
    3. foo
      CriteriaApiTest.embeddableInPath
      1. foo.CriteriaApiTest.embeddableInPath(CriteriaApiTest.java:45)
      1 frame