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() {
|
||||
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<>();
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue