@@ -364,7 +364,7 @@ public void testStageBatchingUpdate(VertxTestContext context) {
364364 .thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
365365 .createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
366366 .getResultList ()
367- .thenApply ( pigs -> {
367+ .thenCompose ( pigs -> {
368368 pigs .get ( 0 ).setName ( "One updated" );
369369 pigs .get ( 1 ).setName ( "Two updated" );
370370 return s .update ( 10 , pigs .toArray () );
@@ -383,7 +383,7 @@ public void testStageBatchingUpdateMultiple(VertxTestContext context) {
383383 .thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
384384 .createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
385385 .getResultList ()
386- .thenApply ( pigs -> {
386+ .thenCompose ( pigs -> {
387387 pigs .get ( 0 ).setName ( "One updated" );
388388 pigs .get ( 1 ).setName ( "Two updated" );
389389 return s .updateMultiple ( pigs );
@@ -402,7 +402,7 @@ public void testStageBatchingUpdateNoBatchSizeParameter(VertxTestContext context
402402 .thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
403403 .createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
404404 .getResultList ()
405- .thenApply ( pigs -> {
405+ .thenCompose ( pigs -> {
406406 pigs .get ( 0 ).setName ( "One updated" );
407407 pigs .get ( 1 ).setName ( "Two updated" );
408408 return s .update ( pigs .get ( 0 ), pigs .get ( 1 ) );
0 commit comments