In Hibernate 4 in the EAP 6 I am receiving Cannot create TypedQuery for query with more than one return

Solution Verified - Updated -

Issue

  • I am experiencing the following bug: https://hibernate.onjira.com/browse/HHH-6304
javax.ejb.EJBException: java.lang.IllegalArgumentException: Cannot create TypedQuery for query with more than one return
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:165)
...
Caused by: java.lang.IllegalArgumentException: Cannot create TypedQuery for query with more than one return
at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:697)
at org.jboss.as.jpa.container.AbstractEntityManager.createNamedQuery(AbstractEntityManager.java:79)

Environment

  • JBoss Enterprise Application Platform (EAP) 6.0

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