HHH-3164 HHH-1575 InExpression was populating parameters in the wrong order.

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18027 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2009-11-23 18:34:56 +00:00
parent 1ca018960e
commit 5b6a8eee07
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ public class InExpression implements Criterion {
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 i=0; i<types.length; i++ ) {
Object subval = values[j]==null ?
null :
actype.getPropertyValues( values[j], EntityMode.POJO )[i];