Skip to content

Commit

Permalink
clarify portability of @query
Browse files Browse the repository at this point in the history
Previously, @query accepted any sort of query language.
Now it is defined to accept JDQL, which is more portable.
  • Loading branch information
gavinking committed Mar 30, 2024
1 parent 26a00aa commit c33d022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/src/main/asciidoc/repository.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
====
Expand Down

0 comments on commit c33d022

Please sign in to comment.