java.lang.ClassCastException

org.hibernate.mapping.ManyToOne

Solutions on the web3

  • via Hibernate JIRA by Christian Bauer, 1 year ago
    org.hibernate.mapping.ManyToOne
  • via Hibernate JIRA by Christian Bauer, 1 year ago
    org.hibernate.mapping.ManyToOne
  • org.hibernate.mapping.ManyToOne cannot be cast to org.hibernate.mapping.Component
  • Stack trace

    • java.lang.ClassCastException: org.hibernate.mapping.ManyToOne at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:708) at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:410) at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:371) at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1030) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:227) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 5 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago