]
Gail Badner updated HHH-3694:
-----------------------------
Fix Version/s: 3.6
ResultTransformer not used when scroll() is used on a named SQLQuery
--------------------------------------------------------------------
Key: HHH-3694
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3694
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.3.1
Environment: Hibernate Core 3.3.1, PostgreSQL 8.1, HSQLDB 1.8
Reporter: Oscar Pearce
Assignee: Sharath Reddy
Priority: Minor
Fix For: 3.5.x, 3.6
Attachments: CustomLoader.patch, CustomLoader.patch, sqlqueryrestrans.zip
If a ResultTransformer is set on a named SQLQuery, and then scroll() is used on the
query, the ResultTransformer is never used. The unit test in the attached Maven project
shows this.
The fix seems simple - a one-line change in
org.hibernate.loader.custom.CustomLoader#getHolderInstantiator(ResultTransformer
resultTransformer, String[] queryReturnAliases). The sense of the test of
resultTransformer against null should be reversed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: