We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ad9b8 commit fff4ecaCopy full SHA for fff4eca
src/main/java/io/vertx/howtos/hr/MainVerticle.java
@@ -83,7 +83,7 @@ private Uni<Product> createProduct(RoutingContext ctx) {
83
Product product = ctx.getBodyAsJson().mapTo(Product.class);
84
return emf.withSession(session -> session.
85
persist(product)
86
- .chain(session::flush)
+ .call(session::flush)
87
.replaceWith(product));
88
}
89
// end::crud-methods[]
0 commit comments