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

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19349 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Sharath Reddy 2010-05-03 13:45:20 +00:00
parent bdc83cb2e6
commit e13821624d

View File

@ -328,7 +328,7 @@ public ScrollableResults scroll(
}
static private HolderInstantiator getHolderInstantiator(ResultTransformer resultTransformer, String[] queryReturnAliases) {
if ( resultTransformer != null ) {
if ( resultTransformer == null ) {
return HolderInstantiator.NOOP_INSTANTIATOR;
}
else {