Skip to content

Commit

Permalink
Merge pull request #45305 from MaciejDromin/mongodb-panache-sentence-fix
Browse files Browse the repository at this point in the history
Docs: Correct sentence in Simplified MongoDB with Panache
  • Loading branch information
gsmet authored Dec 28, 2024
2 parents df371c2 + 7cc9849 commit 0d3fee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/mongodb-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ List<String> namesButEmmanuels = persons
.collect(Collectors.toList());
----

NOTE: A `persistOrUpdate()` method exist that persist or update an entity in the database, it uses the __upsert__ capability of MongoDB to do it in a single query.
NOTE: A `persistOrUpdate()` method persists or updates an entity in the database, it uses the __upsert__ capability of MongoDB to do it in a single query.

=== Adding entity methods

Expand Down Expand Up @@ -410,7 +410,7 @@ List<String> namesButEmmanuels = persons
.collect(Collectors.toList());
----

NOTE: A `persistOrUpdate()` method exist that persist or update an entity in the database, it uses the __upsert__ capability of MongoDB to do it in a single query.
NOTE: A `persistOrUpdate()` method persists or updates an entity in the database, it uses the __upsert__ capability of MongoDB to do it in a single query.

NOTE: The rest of the documentation show usages based on the active record pattern only,
but keep in mind that they can be performed with the repository pattern as well.
Expand Down

0 comments on commit 0d3fee5

Please sign in to comment.