HHH-11927 - CascadeMergeToChildBeforeParentTest should not assume the persisted entity has the id with a value of 1
This commit is contained in:
parent
8d29a4d588
commit
203793be63
|
@ -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" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue