File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hibernate-core/src/main/java/org/hibernate/sql/results/graph/collection/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,13 @@ protected void resolveInstanceSubInitializers(ImmediateCollectionInitializerData
123123 final Initializer <?> initializer = elementAssembler .getInitializer ();
124124 if ( initializer != null ) {
125125 final RowProcessingState rowProcessingState = data .getRowProcessingState ();
126- final Integer index = listIndexAssembler .assemble ( rowProcessingState );
126+ Integer index = listIndexAssembler .assemble ( rowProcessingState );
127127 if ( index != null ) {
128128 final PersistentList <?> list = getCollectionInstance ( data );
129129 assert list != null ;
130+ if ( listIndexBase != 0 ) {
131+ index -= listIndexBase ;
132+ }
130133 initializer .resolveInstance ( list .get ( index ), rowProcessingState );
131134 }
132135 }
You can’t perform that action at this time.
0 commit comments