HHH-16223 Avoid using legacy HBM2DDL_CONNECTION

This commit is contained in:
Sanne Grinovero 2023-03-07 19:59:45 +00:00 committed by Sanne Grinovero
parent 0b3deafa3c
commit c8b3257644
4 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ public class SchemaDatabaseFileGenerationFailureTest {
private Map getConfig() {
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.HBM2DDL_HALT_ON_ERROR, true );
ArrayList<Class> classes = new ArrayList<>();

View File

@ -90,7 +90,7 @@ public class IndividuallySchemaValidatorImplConnectionTest extends BaseUnitTestC
connection = connectionProvider.getConnection();
ssr = new StandardServiceRegistryBuilder()
.applySetting( AvailableSettings.HBM2DDL_CONNECTION, connection )
.applySetting( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection )
.build();
tool = (HibernateSchemaManagementTool) ssr.getService( SchemaManagementTool.class );

View File

@ -61,7 +61,7 @@ public class SchemaCreateHelper {
Connection connection) {
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.CREATE );
settings.put( AvailableSettings.HBM2DDL_CONNECTION, connection );
settings.put( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection );
SchemaManagementToolCoordinator.process(
metadata,
serviceRegistry,

View File

@ -47,7 +47,7 @@ public class SchemaDropHelper {
Connection connection) {
final Map settings = serviceRegistry.getService( ConfigurationService.class ).getSettings();
settings.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, Action.DROP );
settings.put( AvailableSettings.HBM2DDL_CONNECTION, connection );
settings.put( AvailableSettings.JAKARTA_HBM2DDL_CONNECTION, connection );
SchemaManagementToolCoordinator.process(
metadata,
serviceRegistry,