HHH-15550 New global and persistent temporary `create_tables` params
This commit is contained in:
parent
caaaa71ffd
commit
fe5fa5dce4
|
@ -59,6 +59,8 @@ public class GlobalTemporaryTableStrategy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepared = true;
|
||||||
|
|
||||||
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
|
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
|
||||||
.getBootstrapContext()
|
.getBootstrapContext()
|
||||||
.getServiceRegistry().getService( ConfigurationService.class );
|
.getServiceRegistry().getService( ConfigurationService.class );
|
||||||
|
@ -72,8 +74,6 @@ public class GlobalTemporaryTableStrategy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
prepared = true;
|
|
||||||
|
|
||||||
log.debugf( "Creating global-temp ID table : %s", getTemporaryTable().getTableExpression() );
|
log.debugf( "Creating global-temp ID table : %s", getTemporaryTable().getTableExpression() );
|
||||||
|
|
||||||
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(
|
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(
|
||||||
|
@ -132,7 +132,10 @@ public class GlobalTemporaryTableStrategy {
|
||||||
}
|
}
|
||||||
catch (UnsupportedOperationException e) {
|
catch (UnsupportedOperationException e) {
|
||||||
// assume this comes from org.hibernate.engine.jdbc.connections.internal.UserSuppliedConnectionProviderImpl
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
catch (SQLException e) {
|
catch (SQLException e) {
|
||||||
|
|
|
@ -65,6 +65,8 @@ public abstract class PersistentTableStrategy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepared = true;
|
||||||
|
|
||||||
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
|
final ConfigurationService configService = mappingModelCreationProcess.getCreationContext()
|
||||||
.getBootstrapContext()
|
.getBootstrapContext()
|
||||||
.getServiceRegistry().getService( ConfigurationService.class );
|
.getServiceRegistry().getService( ConfigurationService.class );
|
||||||
|
@ -78,8 +80,6 @@ public abstract class PersistentTableStrategy {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
prepared = true;
|
|
||||||
|
|
||||||
log.debugf( "Creating persistent ID table : %s", getTemporaryTable().getTableExpression() );
|
log.debugf( "Creating persistent ID table : %s", getTemporaryTable().getTableExpression() );
|
||||||
|
|
||||||
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(
|
final TemporaryTableHelper.TemporaryTableCreationWork temporaryTableCreationWork = new TemporaryTableHelper.TemporaryTableCreationWork(
|
||||||
|
|
Loading…
Reference in New Issue