Author: stliu
Date: 2009-12-05 10:44:55 -0500 (Sat, 05 Dec 2009)
New Revision: 18144
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/criterion/InExpression.java
Log:
JBPAPP-3223 HHH-3164 id in with EmbeddedId and criteria API
Modified: core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/criterion/InExpression.java
===================================================================
---
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/criterion/InExpression.java 2009-12-05
15:37:20 UTC (rev 18143)
+++
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/criterion/InExpression.java 2009-12-05
15:44:55 UTC (rev 18144)
@@ -50,8 +50,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];