HHH-16223 Avoid using legacy HBM2DDL_CONNECTION
This commit is contained in:
parent
cf42df6550
commit
c8111fc753
|
@ -118,7 +118,7 @@ public class SchemaDatabaseFileGenerationFailureTest {
|
||||||
|
|
||||||
private Map getConfig() {
|
private Map getConfig() {
|
||||||
final Map<Object, Object> config = Environment.getProperties();
|
final Map<Object, Object> config = Environment.getProperties();
|
||||||
config.put( AvailableSettings.HBM2DDL_CONNECTION, connection );
|
config.put( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection );
|
||||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, "drop" );
|
config.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, "drop" );
|
||||||
config.put( AvailableSettings.HBM2DDL_HALT_ON_ERROR, true );
|
config.put( AvailableSettings.HBM2DDL_HALT_ON_ERROR, true );
|
||||||
ArrayList<Class> classes = new ArrayList<>();
|
ArrayList<Class> classes = new ArrayList<>();
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class IndividuallySchemaValidatorImplConnectionTest extends BaseUnitTestC
|
||||||
connection = connectionProvider.getConnection();
|
connection = connectionProvider.getConnection();
|
||||||
|
|
||||||
ssr = new StandardServiceRegistryBuilder()
|
ssr = new StandardServiceRegistryBuilder()
|
||||||
.applySetting( AvailableSettings.HBM2DDL_CONNECTION, connection )
|
.applySetting( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection )
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
tool = (HibernateSchemaManagementTool) ssr.getService( SchemaManagementTool.class );
|
tool = (HibernateSchemaManagementTool) ssr.getService( SchemaManagementTool.class );
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class SchemaCreateHelper {
|
||||||
Connection connection) {
|
Connection connection) {
|
||||||
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
|
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
|
||||||
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.CREATE );
|
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.CREATE );
|
||||||
settings.put( AvailableSettings.HBM2DDL_CONNECTION, connection );
|
settings.put( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection );
|
||||||
SchemaManagementToolCoordinator.process(
|
SchemaManagementToolCoordinator.process(
|
||||||
metadata,
|
metadata,
|
||||||
serviceRegistry,
|
serviceRegistry,
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class SchemaDropHelper {
|
||||||
Connection connection) {
|
Connection connection) {
|
||||||
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
|
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
|
||||||
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.DROP );
|
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.DROP );
|
||||||
settings.put( AvailableSettings.HBM2DDL_CONNECTION, connection );
|
settings.put( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection );
|
||||||
SchemaManagementToolCoordinator.process(
|
SchemaManagementToolCoordinator.process(
|
||||||
metadata,
|
metadata,
|
||||||
serviceRegistry,
|
serviceRegistry,
|
||||||
|
|
Loading…
Reference in New Issue