minor changes

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-11-04 20:49:16 +01:00
parent e60d674bfe
commit fc1d0f5456
3 changed files with 8 additions and 9 deletions

View File

@ -96,10 +96,10 @@ public class InsertReturningDelegate extends AbstractReturningDelegate {
@Override
public String prepareIdentifierGeneratingInsert(String insertSQL) {
return dialect().getIdentityColumnSupport().appendIdentitySelectToInsert(
( (BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping() ).getSelectionExpression(),
insertSQL
);
final BasicEntityIdentifierMapping identifierMapping =
(BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping();
return dialect().getIdentityColumnSupport()
.appendIdentitySelectToInsert( identifierMapping.getSelectionExpression(), insertSQL );
}
@Override

View File

@ -33,10 +33,10 @@ public class SybaseJConnGetGeneratedKeysDelegate extends GetGeneratedKeysDelegat
@Override
public String prepareIdentifierGeneratingInsert(String insertSQL) {
return dialect().getIdentityColumnSupport().appendIdentitySelectToInsert(
( (BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping() ).getSelectionExpression(),
insertSQL
);
final BasicEntityIdentifierMapping identifierMapping =
(BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping();
return dialect().getIdentityColumnSupport()
.appendIdentitySelectToInsert( identifierMapping.getSelectionExpression(), insertSQL );
}
@Override

View File

@ -34,7 +34,6 @@ import org.hibernate.boot.model.process.internal.VersionResolution;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
import org.hibernate.boot.spi.InFlightMetadataCollector;
import org.hibernate.boot.spi.MetadataBuildingContext;
import org.hibernate.dialect.Dialect;
import org.hibernate.engine.jdbc.Size;