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
|
@Override
|
||||||
public String prepareIdentifierGeneratingInsert(String insertSQL) {
|
public String prepareIdentifierGeneratingInsert(String insertSQL) {
|
||||||
return dialect().getIdentityColumnSupport().appendIdentitySelectToInsert(
|
final BasicEntityIdentifierMapping identifierMapping =
|
||||||
( (BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping() ).getSelectionExpression(),
|
(BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping();
|
||||||
insertSQL
|
return dialect().getIdentityColumnSupport()
|
||||||
);
|
.appendIdentitySelectToInsert( identifierMapping.getSelectionExpression(), insertSQL );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -33,10 +33,10 @@ public class SybaseJConnGetGeneratedKeysDelegate extends GetGeneratedKeysDelegat
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String prepareIdentifierGeneratingInsert(String insertSQL) {
|
public String prepareIdentifierGeneratingInsert(String insertSQL) {
|
||||||
return dialect().getIdentityColumnSupport().appendIdentitySelectToInsert(
|
final BasicEntityIdentifierMapping identifierMapping =
|
||||||
( (BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping() ).getSelectionExpression(),
|
(BasicEntityIdentifierMapping) persister.getRootEntityDescriptor().getIdentifierMapping();
|
||||||
insertSQL
|
return dialect().getIdentityColumnSupport()
|
||||||
);
|
.appendIdentitySelectToInsert( identifierMapping.getSelectionExpression(), insertSQL );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -34,7 +34,6 @@ import org.hibernate.boot.model.process.internal.VersionResolution;
|
||||||
import org.hibernate.boot.registry.StandardServiceRegistry;
|
import org.hibernate.boot.registry.StandardServiceRegistry;
|
||||||
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
|
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
|
||||||
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
|
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
|
||||||
import org.hibernate.boot.spi.InFlightMetadataCollector;
|
|
||||||
import org.hibernate.boot.spi.MetadataBuildingContext;
|
import org.hibernate.boot.spi.MetadataBuildingContext;
|
||||||
import org.hibernate.dialect.Dialect;
|
import org.hibernate.dialect.Dialect;
|
||||||
import org.hibernate.engine.jdbc.Size;
|
import org.hibernate.engine.jdbc.Size;
|
||||||
|
|
Loading…
Reference in New Issue