File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/naturalid/mutable Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,9 @@ public void testEviction(SessionFactoryScope scope) {
367367 @ Test
368368 @ JiraKey ("HHH-7287" )
369369 public void testModificationInOtherSession (SessionFactoryScope factoryScope ) {
370- var id = factoryScope .fromTransaction ( (session ) -> {
370+ factoryScope .inTransaction ( (session ) -> {
371371 User u = new User ( "gavin" , "hb" , "secret" );
372372 session .persist ( u );
373- return u .getId ();
374373 } );
375374
376375 // Use transactionless session
@@ -381,7 +380,7 @@ public void testModificationInOtherSession(SessionFactoryScope factoryScope) {
381380
382381 // CHANGE natural-id values in another session
383382 factoryScope .inTransaction ( (otherSession ) -> {
384- var u = otherSession .find ( User .class , id );
383+ var u = otherSession .find ( User .class , 1 );
385384 u .setOrg ( "zz" );
386385 } );
387386 // CHANGE APPLIED
You can’t perform that action at this time.
0 commit comments