java.lang.ClassCastException: org.hibernate.mapping.ManyToOne

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.