Skip to content

Commit

Permalink
WIP Apply suggestions from code review
Browse files Browse the repository at this point in the history
will be squashed later

Co-Authored-By: Georgios Andrianakis <[email protected]>
  • Loading branch information
loicmathieu and geoand authored Feb 26, 2020
1 parent 9f793c2 commit bc1ee4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/hibernate-orm-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Does this look interesting? Read on!

NOTE: the `list()` method might be surprising at first. It takes fragments of HQL (JP-QL) queries and contextualizes the rest. That makes for very concise but yet readable code.

NOTE: what you just see is the link:https://www.martinfowler.com/eaaCatalog/activeRecord.html[active record pattern], sometimes just called the entity pattern.
Hibernate with Panache also provides the more classical link:https://martinfowler.com/eaaCatalog/repository.html[repository pattern] via `PanacheRepository`.
NOTE: what was described above is essentially the link:https://www.martinfowler.com/eaaCatalog/activeRecord.html[active record pattern], sometimes just called the entity pattern.
Hibernate with Panache also allows for the use of the more classical link:https://martinfowler.com/eaaCatalog/repository.html[repository pattern] via `PanacheRepository`.

== Solution

Expand Down Expand Up @@ -395,7 +395,7 @@ List<String> namesButEmmanuels = persons
NOTE: The `stream` methods require a transaction to work.

NOTE: The rest of the documentation show usages based on the active record pattern only,
but they can be done with the repository pattern as well.
but keep in mind that they can be performed with the repository pattern as well.
The repository pattern examples have been omitted for brevity.

== Advanced Query
Expand Down

0 comments on commit bc1ee4c

Please sign in to comment.