ends up with:
java.lang.IllegalArgumentException: Cannot create TypedQuery for query with more than one return
Both should work according to docs.
This has been reported and worked on as per HHH-5348, but the issue prevails.
Changes for were only ever applied to master (4.0) not to the 3.6 branch
good job!! man~~~
This bug still occurs on 3.6.8-SNAPSHOT (hibernate-core-3.6.8-20110915.041553-9 and hibernate-entitymanager-3.6.8-20110915.043955-9) when using a named query. When using the very same query as a non-named query it works.
Created a new issue to track this: