mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-18 00:55:16 +00:00
HHH-17600 - Properly setting next index if ListIndexBase annotation is present
This commit is contained in:
parent
16a3bfb20c
commit
e1d326ef3e
@ -233,7 +233,8 @@ && hasIndex()
|
|||||||
final JdbcValueBindings jdbcValueBindings = mutationExecutor.getJdbcValueBindings();
|
final JdbcValueBindings jdbcValueBindings = mutationExecutor.getJdbcValueBindings();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int nextIndex = resetIndex ? 0 : getSize( key, session );
|
int nextIndex = ( resetIndex ? 0 : getSize( key, session ) ) +
|
||||||
|
Math.max( getAttributeMapping().getIndexMetadata().getListIndexBase(), 0 );
|
||||||
|
|
||||||
while ( entries.hasNext() ) {
|
while ( entries.hasNext() ) {
|
||||||
final Object entry = entries.next();
|
final Object entry = entries.next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user