From 87a2d5865943a29ef7d424d4b4d3d94ae803adc4 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Wed, 14 Oct 2020 13:26:34 +0200 Subject: [PATCH] DATAJPA-1792 - Fixes typo. --- src/main/asciidoc/jpa.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 3e108b6d8..5b64fddc7 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -381,7 +381,7 @@ A similar approach also works with named native queries, by adding the `.count` [[jpa.query-methods.sorting]] === Using Sort -Sorting can be done be either providing a `PageRequest` or by using `Sort` directly. The properties actually used within the `Order` instances of `Sort` need to match your domain model, which means they need to resolve to either a property or an alias used within the query. The JPQL defines this as a state field path expression. +Sorting can be done by either providing a `PageRequest` or by using `Sort` directly. The properties actually used within the `Order` instances of `Sort` need to match your domain model, which means they need to resolve to either a property or an alias used within the query. The JPQL defines this as a state field path expression. NOTE: Using any non-referenceable path expression leads to an `Exception`.