Skip to content

Commit a99a087

Browse files
committed
DATAJPA-1793 - Introduce the term "custom method".
1 parent 2109632 commit a99a087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ If the underlying database or the JPA implementation supports additional wildcar
550550
=== Modifying Queries
551551

552552
All the previous sections describe how to declare queries to access a given entity or collection of entities.
553-
You can add custom modifying behavior by using the facilities described in "`<<repositories.custom-implementations>>`".
553+
You can add custom modifying behavior by using the custom method facilities described in "`<<repositories.custom-implementations>>`".
554554
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:
555555

556556
.Declaring manipulating queries
@@ -567,7 +567,7 @@ Doing so triggers the query annotated to the method as an updating query instead
567567
If you wish the `EntityManager` to be cleared automatically, you can set the `@Modifying` annotation's `clearAutomatically` attribute to `true`.
568568

569569
The `@Modifying` annotation is only relevant in combination with the `@Query` annotation.
570-
Derived query methods or custom methods do not require this Annotation.
570+
Derived query methods or custom methods do not require this annotation.
571571

572572
[[jpa.modifying-queries.derived-delete]]
573573
==== Derived Delete Queries

0 commit comments

Comments
 (0)