HHH-11927 - CascadeMergeToChildBeforeParentTest should not assume the persisted entity has the id with a value of 1

(cherry picked from commit 203793be63)
This commit is contained in:
jcibik 2017-08-14 15:24:27 +02:00 committed by Gail Badner
parent 80c441cbe0
commit 1c0a7a6ae6
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ public class CascadeMergeToChildBeforeParentTest extends BaseCoreFunctionalTestC
s = openSession();
s.beginTransaction();
route = (Route) s.get( Route.class, new Long( 1 ) );
route = (Route) s.get( Route.class, route.getRouteID() );
route.setTransientField( new String( "sfnaouisrbn" ) );
@ -127,7 +127,7 @@ public class CascadeMergeToChildBeforeParentTest extends BaseCoreFunctionalTestC
s = openSession();
s.beginTransaction();
route = (Route) s.get( Route.class, new Long( 1 ) );
route = (Route) s.get( Route.class, route.getRouteID() );
route.setTransientField( new String( "sfnaouisrbn" ) );
@ -194,7 +194,7 @@ public class CascadeMergeToChildBeforeParentTest extends BaseCoreFunctionalTestC
s = openSession();
s.beginTransaction();
route = (Route) s.get( Route.class, new Long( 1 ) );
route = (Route) s.get( Route.class, route.getRouteID() );
route.setTransientField( new String( "sfnaouisrbn" ) );