HHH-4576 - Tests in MySQL using different case for objects as defined in configuration
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17988 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
a99a524b37
commit
a1d2ece5cf
|
@ -186,7 +186,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
|
|||
List l = s.createQuery("from Vehicle").list();
|
||||
assertEquals(l.size(),4);
|
||||
|
||||
s.createSQLQuery( "insert into PICKUP (id, vin, owner) select id, vin, owner from Car" ).executeUpdate();
|
||||
s.createSQLQuery( "insert into Pickup (id, vin, owner) select id, vin, owner from Car" ).executeUpdate();
|
||||
|
||||
l = s.createQuery("from Vehicle").list();
|
||||
assertEquals(l.size(),5);
|
||||
|
@ -194,7 +194,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
|
|||
t.commit();
|
||||
t = s.beginTransaction();
|
||||
|
||||
s.createSQLQuery( "delete from TRUCK" ).executeUpdate();
|
||||
s.createSQLQuery( "delete from Truck" ).executeUpdate();
|
||||
|
||||
l = s.createQuery("from Vehicle").list();
|
||||
assertEquals(l.size(),4);
|
||||
|
@ -207,7 +207,7 @@ public class BulkManipulationTest extends FunctionalTestCase {
|
|||
|
||||
assertEquals(0,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "NotThere" ).executeUpdate());
|
||||
assertEquals(1,s.createSQLQuery( "delete from SUV where owner = :owner" ).setString( "owner", "Joe" ).executeUpdate());
|
||||
s.createSQLQuery( "delete from PICKUP" ).executeUpdate();
|
||||
s.createSQLQuery( "delete from Pickup" ).executeUpdate();
|
||||
|
||||
l = s.createQuery("from Vehicle").list();
|
||||
assertEquals(l.size(),0);
|
||||
|
|
|
@ -26,6 +26,6 @@
|
|||
|
||||
<sql-query name="native-delete-car">
|
||||
<synchronize table="Car"/>
|
||||
delete from CAR where owner = ?
|
||||
delete from Car where owner = ?
|
||||
</sql-query>
|
||||
</hibernate-mapping>
|
Loading…
Reference in New Issue