minor changes
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
e60d674bfe
commit
fc1d0f5456
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue