From 05d536d3457f6c1686592a5b73048da9f7e5c5bf Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Mon, 6 Dec 2021 20:29:59 +0100 Subject: [PATCH] Polishing: fix wrong variable name --- .../persister/entity/AbstractEntityPersister.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index f7e5bdcb1e..87209d89a2 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -3257,7 +3257,7 @@ public abstract class AbstractEntityPersister .toStatementString(); } - private BasicBatchKey inserBatchKey; + private BasicBatchKey insertBatchKey; /** * Perform an SQL INSERT. @@ -3298,8 +3298,8 @@ public abstract class AbstractEntityPersister jdbcBatchSizeToUse > 1 && getIdentifierGenerator().supportsJdbcBatchInserts(); - if ( useBatch && inserBatchKey == null ) { - inserBatchKey = new BasicBatchKey( + if ( useBatch && insertBatchKey == null ) { + insertBatchKey = new BasicBatchKey( getEntityName() + "#INSERT", expectation ); @@ -3312,7 +3312,7 @@ public abstract class AbstractEntityPersister if ( useBatch ) { insert = session .getJdbcCoordinator() - .getBatch( inserBatchKey ) + .getBatch( insertBatchKey ) .getBatchStatement( sql, callable ); } else { @@ -3332,7 +3332,7 @@ public abstract class AbstractEntityPersister dehydrate( id, fields, null, notNull, propertyColumnInsertable, j, insert, session, index, false ); if ( useBatch ) { - session.getJdbcCoordinator().getBatch( inserBatchKey ).addToBatch(); + session.getJdbcCoordinator().getBatch( insertBatchKey ).addToBatch(); } else { expectation.verifyOutcome(