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

This commit is contained in:
jcibik 2017-08-14 15:24:27 +02:00 committed by Vlad Mihalcea
parent 8d29a4d588
commit 203793be63
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" ) );