]
Oliver Siegmar commented on HHH-6591:
-------------------------------------
Created a new issue to track this: HHH-6695
Port changes for HHH-5348 to 3.6 branch
---------------------------------------
Key: HHH-6591
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6591
Project: Hibernate Core
Issue Type: Task
Components: entity-manager
Affects Versions: 3.6.6
Reporter: Ondrej Zizka
Assignee: Steve Ebersole
Fix For: 3.6.8
Time Spent: 9h 7m
Remaining Estimate: 0h
This
{code}
List<MyClass> list = em.createQuery("SELECT NEW org.test.MyClass(
'Foo', 123 ) FROM IrcEvent ev", MyClass.class).getResultList();
{code}
and this
{code}
List<Object[]> list = em.createQuery("SELECT 'Foo', 123 FROM IrcEvent
ev", Object[].class).getResultList();
{code}
ends up with:
{quote}
java.lang.IllegalArgumentException: Cannot create TypedQuery for query with more than one
return
{quote}
Both should work according to docs.
This has been reported and worked on as per HHH-5348, but the issue prevails.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: