From 7bbf9cfe589f42c00ade3cfd12c7d24cea2a550e Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Wed, 14 Oct 2020 13:24:34 +0200 Subject: [PATCH] DATAJPA-1793 - Introduce the term "custom method". --- src/main/asciidoc/jpa.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 04c01b3fe..ab635ec7c 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -512,7 +512,7 @@ If the underlying database or the JPA implementation supports additional wildcar === Modifying Queries All the previous sections describe how to declare queries to access a given entity or collection of entities. -You can add custom modifying behavior by using the facilities described in "`<>`". +You can add custom modifying behavior by using the custom method facilities described in "`<>`". As this approach is feasible for comprehensive custom functionality, you can modify queries that only need parameter binding by annotating the query method with `@Modifying`, as shown in the following example: .Declaring manipulating queries @@ -529,7 +529,7 @@ Doing so triggers the query annotated to the method as an updating query instead If you wish the `EntityManager` to be cleared automatically, you can set the `@Modifying` annotation's `clearAutomatically` attribute to `true`. The `@Modifying` annotation is only relevant in combination with the `@Query` annotation. -Derived query methods or custom methods do not require this Annotation. +Derived query methods or custom methods do not require this annotation. [[jpa.modifying-queries.derived-delete]] ==== Derived Delete Queries