HHH-17600 - Properly setting next index if ListIndexBase annotation is present
This commit is contained in:
parent
8e749cbf21
commit
c958b429f2
|
@ -226,7 +226,8 @@ public class OneToManyPersister extends AbstractCollectionPersister {
|
|||
final JdbcValueBindings jdbcValueBindings = mutationExecutor.getJdbcValueBindings();
|
||||
|
||||
try {
|
||||
int nextIndex = resetIndex ? 0 : getSize( key, session );
|
||||
int nextIndex = ( resetIndex ? 0 : getSize( key, session ) ) +
|
||||
Math.max( getAttributeMapping().getIndexMetadata().getListIndexBase(), 0 );
|
||||
|
||||
while ( entries.hasNext() ) {
|
||||
final Object entry = entries.next();
|
||||
|
|
Loading…
Reference in New Issue