polishing
This commit is contained in:
parent
77776a6af1
commit
696db95416
|
@ -3297,7 +3297,7 @@ public abstract class AbstractEntityPersister
|
|||
.toStatementString();
|
||||
}
|
||||
|
||||
private BasicBatchKey inserBatchKey;
|
||||
private BasicBatchKey insertBatchKey;
|
||||
|
||||
/**
|
||||
* Perform an SQL INSERT.
|
||||
|
@ -3338,8 +3338,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
|
||||
);
|
||||
|
@ -3352,7 +3352,7 @@ public abstract class AbstractEntityPersister
|
|||
if ( useBatch ) {
|
||||
insert = session
|
||||
.getJdbcCoordinator()
|
||||
.getBatch( inserBatchKey )
|
||||
.getBatch(insertBatchKey)
|
||||
.getBatchStatement( sql, callable );
|
||||
}
|
||||
else {
|
||||
|
@ -3372,7 +3372,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(
|
||||
|
|
Loading…
Reference in New Issue