HHH-12875 HHH-12882 : Drop tables in proper order in test setup methods
(cherry picked from commit 770ae50e8b
)
This commit is contained in:
parent
42459dec08
commit
e8ec325361
|
@ -53,10 +53,10 @@ public class LazyManyToManyNonUniqueIdWhereTest extends BaseCoreFunctionalTestCa
|
|||
Session session = openSession();
|
||||
session.beginTransaction();
|
||||
{
|
||||
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 BUILDING_RATINGS" ).executeUpdate();
|
||||
session.createSQLQuery( "drop table MATERIAL_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(
|
||||
"create table MAIN_TABLE( " +
|
||||
|
|
|
@ -37,10 +37,10 @@ public class LazyManyToManyNonUniqueIdNotFoundWhereTest extends BaseCoreFunction
|
|||
Session session = openSession();
|
||||
session.beginTransaction();
|
||||
{
|
||||
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 BUILDING_RATINGS" ).executeUpdate();
|
||||
session.createSQLQuery( "drop table MATERIAL_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(
|
||||
"create table MAIN_TABLE( " +
|
||||
|
|
|
@ -42,10 +42,10 @@ public class LazyManyToManyNonUniqueIdWhereTest extends BaseCoreFunctionalTestCa
|
|||
Session session = openSession();
|
||||
session.beginTransaction();
|
||||
{
|
||||
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 BUILDING_RATINGS" ).executeUpdate();
|
||||
session.createSQLQuery( "drop table MATERIAL_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(
|
||||
"create table MAIN_TABLE( " +
|
||||
|
|
Loading…
Reference in New Issue