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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content