We're updating the issue view to help you get more done. 

ResultTransformer not used when scroll() is used on a named SQLQuery

Description

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.

Environment

Hibernate Core 3.3.1, PostgreSQL 8.1, HSQLDB 1.8

Status

Assignee

Sharath Reddy

Reporter

Oscar Pearce

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

3.3.1

Priority

Minor