Polishing: fix wrong variable name
This commit is contained in:
parent
e1a976bce0
commit
05d536d345
|
@ -3257,7 +3257,7 @@ public abstract class AbstractEntityPersister
|
||||||
.toStatementString();
|
.toStatementString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private BasicBatchKey inserBatchKey;
|
private BasicBatchKey insertBatchKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform an SQL INSERT.
|
* Perform an SQL INSERT.
|
||||||
|
@ -3298,8 +3298,8 @@ public abstract class AbstractEntityPersister
|
||||||
jdbcBatchSizeToUse > 1 &&
|
jdbcBatchSizeToUse > 1 &&
|
||||||
getIdentifierGenerator().supportsJdbcBatchInserts();
|
getIdentifierGenerator().supportsJdbcBatchInserts();
|
||||||
|
|
||||||
if ( useBatch && inserBatchKey == null ) {
|
if ( useBatch && insertBatchKey == null ) {
|
||||||
inserBatchKey = new BasicBatchKey(
|
insertBatchKey = new BasicBatchKey(
|
||||||
getEntityName() + "#INSERT",
|
getEntityName() + "#INSERT",
|
||||||
expectation
|
expectation
|
||||||
);
|
);
|
||||||
|
@ -3312,7 +3312,7 @@ public abstract class AbstractEntityPersister
|
||||||
if ( useBatch ) {
|
if ( useBatch ) {
|
||||||
insert = session
|
insert = session
|
||||||
.getJdbcCoordinator()
|
.getJdbcCoordinator()
|
||||||
.getBatch( inserBatchKey )
|
.getBatch( insertBatchKey )
|
||||||
.getBatchStatement( sql, callable );
|
.getBatchStatement( sql, callable );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -3332,7 +3332,7 @@ public abstract class AbstractEntityPersister
|
||||||
dehydrate( id, fields, null, notNull, propertyColumnInsertable, j, insert, session, index, false );
|
dehydrate( id, fields, null, notNull, propertyColumnInsertable, j, insert, session, index, false );
|
||||||
|
|
||||||
if ( useBatch ) {
|
if ( useBatch ) {
|
||||||
session.getJdbcCoordinator().getBatch( inserBatchKey ).addToBatch();
|
session.getJdbcCoordinator().getBatch( insertBatchKey ).addToBatch();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
expectation.verifyOutcome(
|
expectation.verifyOutcome(
|
||||||
|
|
Loading…
Reference in New Issue