From e13821624dffc2497110fddde1180aa53a39dfa8 Mon Sep 17 00:00:00 2001 From: Sharath Reddy Date: Mon, 3 May 2010 13:45:20 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/hibernate/loader/custom/CustomLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java b/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java index 5be16f42a5..852f14f464 100755 --- a/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java +++ b/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java @@ -328,7 +328,7 @@ public class CustomLoader extends Loader { } static private HolderInstantiator getHolderInstantiator(ResultTransformer resultTransformer, String[] queryReturnAliases) { - if ( resultTransformer != null ) { + if ( resultTransformer == null ) { return HolderInstantiator.NOOP_INSTANTIATOR; } else {