Skip to content

Commit

Permalink
HHH-11927 - CascadeMergeToChildBeforeParentTest should not assume the…
Browse files Browse the repository at this point in the history
… persisted entity has the id with a value of 1
  • Loading branch information
jcibik authored and vladmihalcea committed Aug 15, 2017
1 parent 8d29a4d commit 203793b
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -75,7 +75,7 @@ public void testMerge() {
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" ) );

Expand Down Expand Up @@ -127,7 +127,7 @@ public void testMergeTransientChildBeforeTransientParent() {
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" ) );

Expand Down Expand Up @@ -194,7 +194,7 @@ public void testMergeData3Nodes() {
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" ) );

Expand Down

0 comments on commit 203793b

Please sign in to comment.