]
Gail Badner commented on HHH-5348:
----------------------------------
Please do the following:
* checkout the trunk version
* add a test in org.hibernate.ejb.test.query.QueryTest that reproduces your issue
* create a patch using "svn diff" and attach to this issue
Thanks,
Gail
java.lang.IllegalArgumentException: Cannot create TypedQuery for
query with more than one return with AbstractEntityManager.createQuery(String jpaqlString,
Class<T> resultClass) on View object
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: HHH-5348
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5348
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.3
Reporter: nodje
I'm getting a
java.lang.IllegalArgumentException: Cannot create TypedQuery for query with more than one
return
with a query that returns a View object.
AbstractEntityManager:279, detects as many returns type as there is parameters in the
View object, instead of one single result type, the View Object itself.
QueryString example that fails with public <T> TypedQuery<T>
createQuery(String jpaqlString, Class<T> resultClass):
"select new WorkContractDto(wc.workContractStartDate, wc.workContractEndDate,
wc.workContractEmployeeLastName, wc.workContractSendingStatus) from WorkContract wc where
wc.workContractEmployeeLastName = ?1"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: