[hibernate-commits] Hibernate SVN: r18143 - core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/criterion.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Sat Dec 5 10:37:20 EST 2009


Author: stliu
Date: 2009-12-05 10:37:20 -0500 (Sat, 05 Dec 2009)
New Revision: 18143

Modified:
   core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/criterion/InExpression.java
Log:
JBPAPP-3223 HHH-3164 id in with EmbeddedId and criteria API

Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/criterion/InExpression.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/criterion/InExpression.java	2009-12-05 15:36:35 UTC (rev 18142)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/criterion/InExpression.java	2009-12-05 15:37:20 UTC (rev 18143)
@@ -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];



More information about the hibernate-commits mailing list