Author: epbernard
Date: 2009-11-23 13:34:56 -0500 (Mon, 23 Nov 2009)
New Revision: 18027
Modified:
core/trunk/core/src/main/java/org/hibernate/criterion/InExpression.java
Log:
HHH-3164 HHH-1575 InExpression was populating parameters in the wrong order.
Modified: core/trunk/core/src/main/java/org/hibernate/criterion/InExpression.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/criterion/InExpression.java 2009-11-23
18:08:09 UTC (rev 18026)
+++ core/trunk/core/src/main/java/org/hibernate/criterion/InExpression.java 2009-11-23
18:34:56 UTC (rev 18027)
@@ -70,8 +70,8 @@
if ( type.isComponentType() ) {
AbstractComponentType actype = (AbstractComponentType) type;
Type[] types = actype.getSubtypes();
- for ( int i=0; i<types.length; i++ ) {
- for ( int j=0; j<values.length; j++ ) {
+ for ( int j=0; j<values.length; j++ ) {
+ for ( int i=0; i<types.length; i++ ) {
Object subval = values[j]==null ?
null :
actype.getPropertyValues( values[j], EntityMode.POJO )[i];
Show replies by date