Author: sharathjreddy
Date: 2010-07-01 11:36:46 -0400 (Thu, 01 Jul 2010)
New Revision: 19884
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java
Log:
HHH-3694 ResultTransformer not used when scroll() is used on a named SQLQuery
Modified:
core/branches/Branch_3_5/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java
===================================================================
---
core/branches/Branch_3_5/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java 2010-07-01
11:26:39 UTC (rev 19883)
+++
core/branches/Branch_3_5/core/src/main/java/org/hibernate/loader/custom/CustomLoader.java 2010-07-01
15:36:46 UTC (rev 19884)
@@ -328,7 +328,7 @@
}
static private HolderInstantiator getHolderInstantiator(ResultTransformer
resultTransformer, String[] queryReturnAliases) {
- if ( resultTransformer != null ) {
+ if ( resultTransformer == null ) {
return HolderInstantiator.NOOP_INSTANTIATOR;
}
else {