Issue with Hibernate Named Query

Solution Unverified - Updated -

Issue

  • I've deployed two different versions of the same bundle in the same container.
  • The bundles use hibernate. I've deployed them using the same profile, different features and different feature repositories.
  • The deploy works and the bundles are started correctly. Every version has its persistence unit and blueprint with the same content inside them.
  • But when I try to call a retrieve method , I have org.hibernate.MappingException: Named query not known error. All NamedQuery are defined in entity classes, and this error does not happen when there is only a version deployed in the container.

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.