org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.openxava.naviox.model.Role.reports [org.openxava.kiosko.model.Report]

openxava | mengon05 | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Evitar revision de DB en migracion

    openxava | 10 months ago | mengon05
    org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.openxava.naviox.model.Role.reports [org.openxava.kiosko.model.Report]

    Root Cause Analysis

    1. org.hibernate.AnnotationException

      Use of @OneToMany or @ManyToMany targeting an unmapped class: com.openxava.naviox.model.Role.reports [org.openxava.kiosko.model.Report]

      at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass()
    2. Hibernate
      Configuration.generateSchemaCreationScript
      1. org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1185)
      2. org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:710)
      3. org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:645)
      4. org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:65)
      5. org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1716)
      6. org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1423)
      7. org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:1089)
      7 frames
    3. com.openxava.naviox
      NaviOXFilter.init
      1. com.openxava.naviox.impl.DB.createDB(DB.java:113)
      2. com.openxava.naviox.impl.DB.init(DB.java:32)
      3. com.openxava.naviox.Modules.init(Modules.java:36)
      4. com.openxava.naviox.web.NaviOXFilter.init(NaviOXFilter.java:24)
      4 frames
    4. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
      2. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)
      5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)
      6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
      8. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
      8 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames