org.hibernate.AnnotationException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web219

  • via openxava by mengon05
    , 11 months ago
    Use of @OneToMany or @ManyToMany targeting an unmapped class: com.openxava.naviox.model.Role.reports[org.openxava.kiosko.model.Report]
  • Use of @OneToMany or @ManyToMany targeting an unmapped class: org.mypackage.myapp.model.User.fileInfos[org.mypackage.myapp.model.FileInfo]
  • Use of @OneToMany or @ManyToMany targeting an unmapped class: net.me.myapp.common.dal.dto.WordDTO.synonyms[net.me.myapp.common.model.Word]
  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    4 times, 9 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    3 more bugmates