From c33d022e628fb21f6fba2ee524d81bc050f63dfa Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 30 Mar 2024 16:02:40 +0100 Subject: [PATCH] clarify portability of @Query Previously, @Query accepted any sort of query language. Now it is defined to accept JDQL, which is more portable. --- spec/src/main/asciidoc/repository.asciidoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/src/main/asciidoc/repository.asciidoc b/spec/src/main/asciidoc/repository.asciidoc index a990713a4..725588713 100644 --- a/spec/src/main/asciidoc/repository.asciidoc +++ b/spec/src/main/asciidoc/repository.asciidoc @@ -162,7 +162,8 @@ Or, using a positional parameter: void deleteBook(String isbn); ---- -Programs which make use of annotated query methods are not portable between providers. +Programs which make use of annotated query methods are not in general portable between providers. +However, when the `@Query` annotation specifies a query written in JDQL, the annotated query method is portable between providers to the extent to which its semantics can be implemented on the underlying data store. [NOTE] ====