HHH-12875 HHH-12882 : Drop tables in proper order in test setup methods
(cherry picked from commit 770ae50e8b
)
This commit is contained in:
parent
9c96641d00
commit
99b93ae949
|
@ -53,10 +53,10 @@ public class LazyManyToManyNonUniqueIdWhereTest extends BaseCoreFunctionalTestCa
|
||||||
doInHibernate(
|
doInHibernate(
|
||||||
this::sessionFactory, session -> {
|
this::sessionFactory, session -> {
|
||||||
|
|
||||||
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
|
session.createSQLQuery( "drop table MATERIAL_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE ASSOCIATION_TABLE" ).executeUpdate();
|
session.createSQLQuery( "drop table BUILDING_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table ASSOCIATION_TABLE" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE BUILDING_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table MAIN_TABLE" ).executeUpdate();
|
||||||
|
|
||||||
session.createSQLQuery(
|
session.createSQLQuery(
|
||||||
"create table MAIN_TABLE( " +
|
"create table MAIN_TABLE( " +
|
||||||
|
|
|
@ -36,10 +36,11 @@ public class LazyManyToManyNonUniqueIdNotFoundWhereTest extends BaseCoreFunction
|
||||||
public void setup() {
|
public void setup() {
|
||||||
doInHibernate(
|
doInHibernate(
|
||||||
this::sessionFactory, session -> {
|
this::sessionFactory, session -> {
|
||||||
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
|
|
||||||
session.createSQLQuery( "DROP TABLE ASSOCIATION_TABLE" ).executeUpdate();
|
session.createSQLQuery( "drop table MATERIAL_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table BUILDING_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE BUILDING_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table ASSOCIATION_TABLE" ).executeUpdate();
|
||||||
|
session.createSQLQuery( "drop table MAIN_TABLE" ).executeUpdate();
|
||||||
|
|
||||||
session.createSQLQuery(
|
session.createSQLQuery(
|
||||||
"create table MAIN_TABLE( " +
|
"create table MAIN_TABLE( " +
|
||||||
|
|
|
@ -42,10 +42,10 @@ public class LazyManyToManyNonUniqueIdWhereTest extends BaseCoreFunctionalTestCa
|
||||||
doInHibernate(
|
doInHibernate(
|
||||||
this::sessionFactory, session -> {
|
this::sessionFactory, session -> {
|
||||||
|
|
||||||
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
|
session.createSQLQuery( "drop table MATERIAL_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE ASSOCIATION_TABLE" ).executeUpdate();
|
session.createSQLQuery( "drop table BUILDING_RATINGS" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table ASSOCIATION_TABLE" ).executeUpdate();
|
||||||
session.createSQLQuery( "DROP TABLE BUILDING_RATINGS" ).executeUpdate();
|
session.createSQLQuery( "drop table MAIN_TABLE" ).executeUpdate();
|
||||||
|
|
||||||
session.createSQLQuery(
|
session.createSQLQuery(
|
||||||
"create table MAIN_TABLE( " +
|
"create table MAIN_TABLE( " +
|
||||||
|
|
Loading…
Reference in New Issue