org.hibernate.MappingException: Unknown collection role: test.BookDefinition.bookMarks

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 Paul Nardone, 1 year ago
Unknown collection role: test.BookDefinition.bookMarks
via Hibernate JIRA by Oliver Ringel, 1 year ago
Unknown collection role: testcase.hibernate.PersonBase.addresses
via Hibernate JIRA by Oliver Ringel, 1 year ago
Unknown collection role: testcase.hibernate.PersonBase.addresses
via Hibernate JIRA by Paul Nardone, 1 year ago
Unknown collection role: test.BookDefinition.bookMarks
via gilead by sridheropenid
, 1 year ago
Unknown collection role: null
via Hibernate JIRA by Marcin Mościcki, 11 months ago
Unknown collection role: hibernatedemo.model.person.personMap
org.hibernate.MappingException: Unknown collection role: test.BookDefinition.bookMarks
at org.hibernate.ejb.criteria.path.PluralAttributePath.resolvePersister(PluralAttributePath.java:58)
at org.hibernate.ejb.criteria.path.PluralAttributePath.(PluralAttributePath.java:52)
at test.Test.testTestSystem(Test.java:136)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:60)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:106)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
at undefined.$Proxy0.invoke(Unknown Source)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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