org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: org.hibernate.search.test.batchindexing.Nation.librariesHave[org.hibernate.search.test.batchindexing.Book]

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 Emmanuel Bernard, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: org.hibernate.search.test.batchindexing.Nation.librariesHave[org.hibernate.search.test.batchindexing.Book]
via Hibernate JIRA by Emmanuel Bernard, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: org.hibernate.search.test.batchindexing.Nation.librariesHave[org.hibernate.search.test.batchindexing.Book]
via Stack Overflow by Valter Henrique
, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: com.bytecode.entities.Event.categorytagit[com.bytecode.entities.Categorytagit]
via Stack Overflow by Jerry Schirmer
, 2 years ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: cars.AutoDealership.vehicle[cars.Vehicle]
via Stack Overflow by Dave
, 2 years ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: org.mainco.subco.pd.domain.TrainingSessionTeacher.subjects[java.lang.String]
via Stack Overflow by Marco
, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: model.pojos.Wheelchair.materials[model.pojos.Material]
org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: org.hibernate.search.test.batchindexing.Nation.librariesHave[org.hibernate.search.test.batchindexing.Book]
at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1150)
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:680)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:619)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1221)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:383)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377)
at org.hibernate.search.test.util.FullTextSessionBuilder.build(FullTextSessionBuilder.java:154)
at org.hibernate.search.test.batchindexing.SearchIndexerTest.testIdentifierNaming(SearchIndexerTest.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 month ago
Once, 5 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates

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