@@ -364,7 +364,7 @@ public void testStageBatchingUpdate(VertxTestContext context) {
364
364
.thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
365
365
.createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
366
366
.getResultList ()
367
- .thenApply ( pigs -> {
367
+ .thenCompose ( pigs -> {
368
368
pigs .get ( 0 ).setName ( "One updated" );
369
369
pigs .get ( 1 ).setName ( "Two updated" );
370
370
return s .update ( 10 , pigs .toArray () );
@@ -383,7 +383,7 @@ public void testStageBatchingUpdateMultiple(VertxTestContext context) {
383
383
.thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
384
384
.createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
385
385
.getResultList ()
386
- .thenApply ( pigs -> {
386
+ .thenCompose ( pigs -> {
387
387
pigs .get ( 0 ).setName ( "One updated" );
388
388
pigs .get ( 1 ).setName ( "Two updated" );
389
389
return s .updateMultiple ( pigs );
@@ -402,7 +402,7 @@ public void testStageBatchingUpdateNoBatchSizeParameter(VertxTestContext context
402
402
.thenCompose ( v -> getSessionFactory ().withStatelessTransaction ( s -> s
403
403
.createQuery ( "from GuineaPig p order by p.id" , GuineaPig .class )
404
404
.getResultList ()
405
- .thenApply ( pigs -> {
405
+ .thenCompose ( pigs -> {
406
406
pigs .get ( 0 ).setName ( "One updated" );
407
407
pigs .get ( 1 ).setName ( "Two updated" );
408
408
return s .update ( pigs .get ( 0 ), pigs .get ( 1 ) );
0 commit comments