HHH-16223 Deprecate HBM2DDL_SCRIPTS_ACTION
This commit is contained in:
parent
755e78ba18
commit
6ff7213515
|
@ -61,7 +61,7 @@ public class OneToOneJoinTableUniquenessTest extends BaseCoreFunctionalTestCase
|
|||
}
|
||||
String value = output.toPath().toString();
|
||||
configuration.setProperty( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, value );
|
||||
configuration.setProperty( AvailableSettings.HBM2DDL_SCRIPTS_ACTION, "create" );
|
||||
configuration.setProperty( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "create" );
|
||||
configuration.setProperty( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, "create-drop" );
|
||||
configuration.setProperty( AvailableSettings.FORMAT_SQL, "false" );
|
||||
}
|
||||
|
|
|
@ -688,7 +688,7 @@ public class DefaultCatalogAndSchemaTest {
|
|||
serviceRegistry.getService( ConfigurationService.class ).getSettings()
|
||||
);
|
||||
StringWriter writer = new StringWriter();
|
||||
settings.put( AvailableSettings.HBM2DDL_SCRIPTS_ACTION, action );
|
||||
settings.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION, action );
|
||||
settings.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, writer );
|
||||
settings.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, writer );
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.junit.jupiter.api.AfterEach;
|
|||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.hibernate.cfg.AvailableSettings.HBM2DDL_SCRIPTS_ACTION;
|
||||
import static org.hibernate.cfg.AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION;
|
||||
import static org.hibernate.cfg.AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET;
|
||||
import static org.hibernate.cfg.AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
@ -47,7 +47,7 @@ public class SchemaCreateDropUtf8WithoutHbm2DdlCharsetNameTest {
|
|||
final Map<Object, Object> config = Environment.getProperties();
|
||||
config.put( JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, createSchema.toPath() );
|
||||
config.put( JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, dropSchema.toPath() );
|
||||
config.put( HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
config.put( JAKARTA_HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
ArrayList<Class> classes = new ArrayList<Class>();
|
||||
|
||||
classes.addAll( Arrays.asList( new Class[] {TestEntity.class} ) );
|
||||
|
|
|
@ -111,7 +111,7 @@ public class SchemaScriptFileGenerationFailureTest {
|
|||
private Map getConfig() {
|
||||
final Map<Object, Object> config = Environment.getProperties();
|
||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, writer );
|
||||
config.put( AvailableSettings.HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
config.put( AvailableSettings.HBM2DDL_HALT_ON_ERROR, "true" );
|
||||
ArrayList<Class> classes = new ArrayList<>();
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ public class SchemaScriptFileGenerationTest {
|
|||
final Map<Object, Object> config = Environment.getProperties();
|
||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, createSchema.toPath() );
|
||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, dropSchema.toPath() );
|
||||
config.put( AvailableSettings.HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
config.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
ArrayList<Class> classes = new ArrayList<Class>();
|
||||
|
||||
classes.addAll( Arrays.asList( new Class[] {TestEntity.class} ) );
|
||||
|
|
|
@ -67,7 +67,7 @@ public class HANASchemaMigrationTargetScriptCreationTest extends BaseCoreFunctio
|
|||
fail( e.getMessage() );
|
||||
}
|
||||
this.output.deleteOnExit();
|
||||
configuration.setProperty( Environment.HBM2DDL_SCRIPTS_ACTION, "create" );
|
||||
configuration.setProperty( Environment.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "create" );
|
||||
configuration.setProperty( Environment.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, this.output.getAbsolutePath() );
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ public class SchemaCreationToOutputScriptTest {
|
|||
private void createServiceRegistryAndMetadata(String append) {
|
||||
final StandardServiceRegistryBuilder standardServiceRegistryBuilder = new StandardServiceRegistryBuilder()
|
||||
.applySetting( Environment.FORMAT_SQL, "false" )
|
||||
.applySetting( Environment.HBM2DDL_SCRIPTS_ACTION, "create" )
|
||||
.applySetting( Environment.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "create" )
|
||||
.applySetting( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, output.getAbsolutePath() );
|
||||
if ( append != null ) {
|
||||
standardServiceRegistryBuilder.applySetting( AvailableSettings.HBM2DDL_SCRIPTS_CREATE_APPEND, append );
|
||||
|
|
|
@ -76,7 +76,7 @@ public class SchemaDropToOutputScriptTest {
|
|||
private void createServiceRegistryAndMetadata(String append) {
|
||||
final StandardServiceRegistryBuilder standardServiceRegistryBuilder = new StandardServiceRegistryBuilder()
|
||||
.applySetting( Environment.FORMAT_SQL, "false" )
|
||||
.applySetting( Environment.HBM2DDL_SCRIPTS_ACTION, "drop" )
|
||||
.applySetting( Environment.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "drop" )
|
||||
.applySetting( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, output.getAbsolutePath() );
|
||||
|
||||
if ( append != null ) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public class SchemaMigrationTargetScriptCreationTest extends BaseCoreFunctionalT
|
|||
}
|
||||
output.deleteOnExit();
|
||||
configuration.setProperty( Environment.JAKARTA_HBM2DDL_DATABASE_ACTION, "update" );
|
||||
configuration.setProperty( Environment.HBM2DDL_SCRIPTS_ACTION, "update" );
|
||||
configuration.setProperty( Environment.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "update" );
|
||||
configuration.setProperty( Environment.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, output.getAbsolutePath() );
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ public class SchemaMigrationToOutputScriptTest {
|
|||
private void createServiceRegistryAndMetadata(String append) {
|
||||
final StandardServiceRegistryBuilder standardServiceRegistryBuilder = new StandardServiceRegistryBuilder()
|
||||
.applySetting( Environment.FORMAT_SQL, "false" )
|
||||
.applySetting( Environment.HBM2DDL_SCRIPTS_ACTION, "update" )
|
||||
.applySetting( Environment.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "update" )
|
||||
.applySetting( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, output.getAbsolutePath() );
|
||||
|
||||
if ( append != null ) {
|
||||
|
|
|
@ -56,7 +56,7 @@ public class OrderSequenceGenerationTest extends BaseEnversJPAFunctionalTestCase
|
|||
super.addConfigOptions( options );
|
||||
options.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET, createSchema.toPath() );
|
||||
options.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET, dropSchema.toPath() );
|
||||
options.put( AvailableSettings.HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
options.put( AvailableSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION, "drop-and-create" );
|
||||
options.put( AvailableSettings.JAKARTA_HBM2DDL_DATABASE_ACTION, "create-drop" );
|
||||
options.put( AvailableSettings.HBM2DDL_AUTO, "create-drop" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue