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
123
123
final Initializer <?> initializer = elementAssembler .getInitializer ();
124
124
if ( initializer != null ) {
125
125
final RowProcessingState rowProcessingState = data .getRowProcessingState ();
126
- final Integer index = listIndexAssembler .assemble ( rowProcessingState );
126
+ Integer index = listIndexAssembler .assemble ( rowProcessingState );
127
127
if ( index != null ) {
128
128
final PersistentList <?> list = getCollectionInstance ( data );
129
129
assert list != null ;
130
+ if ( listIndexBase != 0 ) {
131
+ index -= listIndexBase ;
132
+ }
130
133
initializer .resolveInstance ( list .get ( index ), rowProcessingState );
131
134
}
132
135
}
You can’t perform that action at this time.
0 commit comments