Skip to content

Commit c04878c

Browse files
yohan9569schauder
authored andcommitted
Make source code descriptions more precise.
The title for Example 11 was updated to include '@NativeQuery', as the code snippet demonstrates QueryRewriter usage with both @query and @NativeQuery. The title for Example 7 was similarly adjusted to use '@NativeQuery'. Original pull request: #4120 Signed-off-by: Yohan Park <88149844+yohan9569@users.noreply.github.com>
1 parent c90d91b commit c04878c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ In the preceding example, the `LIKE` delimiter character (`%`) is recognized, an
194194

195195
Using the `@NativeQuery` annotation allows running native queries, as shown in the following example:
196196

197-
.Declare a native query at the query method using @Query
197+
.Declare a native query at the query method using `@NativeQuery`
198198
====
199199
[source, java]
200200
----
@@ -296,7 +296,7 @@ That is, you can make any alterations at the last moment.
296296
Query rewriting applies to the actual query and, when applicable, to count queries.
297297
Count queries are optimized and therefore, either not necessary or a count is obtained through other means, such as derived from a Hibernate `SelectionQuery` if there is an enclosing transaction.
298298

299-
.Declare a QueryRewriter using `@Query`
299+
.Declare a QueryRewriter using `@Query` and `@NativeQuery`
300300
====
301301
[source,java]
302302
----

0 commit comments

Comments
 (0)