Skip to content

Commit

Permalink
Merge pull request #28336 from andreas-eberle/feature/fix-panache-doc…
Browse files Browse the repository at this point in the history
…s-typo

Fix two typos in hiberate-orm-panache.adoc
  • Loading branch information
gsmet authored Oct 1, 2022
2 parents 51be68c + 9f45615 commit 3e8eafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/hibernate-orm-panache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public class RaceWeight {
}
// Only the race and the average weight will be loaded
PanacheQuery<RaceWeight> query = Person.find("select d.race, AVG(d.weight) from Dog d group by d.race).project(RaceWeight.class);
PanacheQuery<RaceWeight> query = Person.find("select d.race, AVG(d.weight) from Dog d group by d.race").project(RaceWeight.class);
----
<1> Hibernate ORM will use this constructor. When the query has a select clause, it is possible to have multiple constructors.

Expand All @@ -827,7 +827,7 @@ For example, this will fail:
[source,java]
----
PanacheQuery<RaceWeight> query = Person.find("select new MyView(d.race, AVG(d.weight)) from Dog d group by d.race).project(AnotherView.class);
PanacheQuery<RaceWeight> query = Person.find("select new MyView(d.race, AVG(d.weight)) from Dog d group by d.race").project(AnotherView.class);
----
====

Expand Down

0 comments on commit 3e8eafb

Please sign in to comment.