HHH-12937 Fix tests on SAP HANA

The following tests fail because of a DROP TABLE statement without CASCADE
- org.hibernate.test.where.annotations.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.annotations.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest
This commit is contained in:
Jonathan Bregler 2018-10-16 09:54:47 +02:00 committed by Guillaume Smet
parent 9ead103044
commit d4ad0df883
4 changed files with 12 additions and 12 deletions

View File

@ -47,9 +47,9 @@ public class LazyElementCollectionBasicNonUniqueIdWhereTest extends BaseCoreFunc
Session session = openSession();
session.beginTransaction();
{
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE COLLECTION_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MAIN_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "COLLECTION_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MATERIAL_RATINGS" ) ).executeUpdate();
session.createSQLQuery(
"create table MAIN_TABLE( " +

View File

@ -52,9 +52,9 @@ public class LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest extends
Session session = openSession();
session.beginTransaction();
{
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE COLLECTION_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MAIN_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "COLLECTION_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MATERIAL_RATINGS" ) ).executeUpdate();
session.createSQLQuery(
"create table MAIN_TABLE( " +

View File

@ -38,9 +38,9 @@ public class LazyElementCollectionBasicNonUniqueIdWhereTest extends BaseCoreFunc
Session session = openSession();
session.beginTransaction();
{
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE COLLECTION_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MAIN_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "COLLECTION_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MATERIAL_RATINGS" ) ).executeUpdate();
session.createSQLQuery(
"create table MAIN_TABLE( " +

View File

@ -38,9 +38,9 @@ public class LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest extends
Session session = openSession();
session.beginTransaction();
{
session.createSQLQuery( "DROP TABLE MAIN_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE COLLECTION_TABLE" ).executeUpdate();
session.createSQLQuery( "DROP TABLE MATERIAL_RATINGS" ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MAIN_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "COLLECTION_TABLE" ) ).executeUpdate();
session.createSQLQuery( getDialect().getDropTableString( "MATERIAL_RATINGS" ) ).executeUpdate();
session.createSQLQuery(
"create table MAIN_TABLE( " +