HHH-15550 New global and persistent temporary `create_tables` params

This commit is contained in:
marco 2022-12-15 20:53:58 +01:00 committed by Christian Beikov
parent caaaa71ffd
commit fe5fa5dce4
2 changed files with 8 additions and 5 deletions

View File

@ -59,6 +59,8 @@ public class GlobalTemporaryTableStrategy {
return;
}
prepared = true;
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
.getBootstrapContext()
.getServiceRegistry().getService( ConfigurationService.class );
@ -72,8 +74,6 @@ public class GlobalTemporaryTableStrategy {
return;
}
prepared = true;
log.debugf( "Creating global-temp ID table : %s", getTemporaryTable().getTableExpression() );
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(
@ -132,7 +132,10 @@ public class GlobalTemporaryTableStrategy {
}
catch (UnsupportedOperationException e) {
// assume this comes from org.hibernate.engine.jdbc.connections.internal.UserSuppliedConnectionProviderImpl
log.debugf( "Unable to obtain JDBC connection; unable to drop global-temp ID table : %s", getTemporaryTable().getTableExpression() );
log.debugf(
"Unable to obtain JDBC connection; unable to drop global-temp ID table : %s",
getTemporaryTable().getTableExpression()
);
return;
}
catch (SQLException e) {

View File

@ -65,6 +65,8 @@ public abstract class PersistentTableStrategy {
return;
}
prepared = true;
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
.getBootstrapContext()
.getServiceRegistry().getService( ConfigurationService.class );
@ -78,8 +80,6 @@ public abstract class PersistentTableStrategy {
return;
}
prepared = true;
log.debugf( "Creating persistent ID table : %s", getTemporaryTable().getTableExpression() );
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(