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]

Hibernate JIRA | Emmanuel Bernard | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954) 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) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)

    Hibernate JIRA | 7 years ago | Emmanuel Bernard
    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]
  2. 0

    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.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954) 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) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)

    Hibernate JIRA | 7 years ago | Emmanuel Bernard
    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]
  3. 0

    HIbernate - "A Foreign Key referring from has the wrong number of column. Should be 2" error

    Stack Overflow | 6 years ago | Scott
    org.hibernate.AnnotationException: A Foreign key refering GavelDB.User from GavelDB.Bid has the wrong number of column. should be 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Annotation exception Hibernate

    Stack Overflow | 4 years ago | user1977204
    org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.efix.model.Enterprise.roles[com.efix.model.Role] at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1068)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Hibernate
      AnnotationConfiguration.buildSessionFactory
      1. org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1150)
      2. org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:680)
      3. org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:619)
      4. org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:66)
      5. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1221)
      6. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:383)
      7. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1377)
      8. org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)
      8 frames
    3. org.hibernate.search
      SearchIndexerTest.testIdentifierNaming
      1. org.hibernate.search.test.util.FullTextSessionBuilder.build(FullTextSessionBuilder.java:154)
      2. org.hibernate.search.test.batchindexing.SearchIndexerTest.testIdentifierNaming(SearchIndexerTest.java:107)
      2 frames
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    5. com.intellij.junit3
      JUnit3IdeaTestRunner.doRun
      1. com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)
      1 frame
    6. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)
      1 frame