Skip to content

Commit 1b4a633

Browse files
committed
Polishing.
Mention restrictions. See #3636 Original pull request: #3637
1 parent d74decc commit 1b4a633

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ The resulting map contains key/value pairs representing the actual database colu
324324
====
325325
[source, java]
326326
----
327-
public interface UserRepository extends JpaRepository<User, Long> {
327+
interface UserRepository extends JpaRepository<User, Long> {
328328
329329
@NativeQuery("SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1")
330-
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
330+
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
331331
332332
@NativeQuery("SELECT * FROM USERS WHERE LASTNAME = ?1")
333333
List<Map<String, Object>> findRawMapByLastname(String lastname); <2>
@@ -337,6 +337,11 @@ public interface UserRepository extends JpaRepository<User, Long> {
337337
<2> Multiple `Map` results backed by ``Tuple``s.
338338
====
339339

340+
NOTE: String-based Tuple Queries are only supported by Hibernate.
341+
Eclipselink supports only Criteria-based Tuple Queries.
342+
343+
[[jpa.query-methods.at-query.projections]]
344+
340345
[[jpa.query-methods.sorting]]
341346
== Using Sort
342347

0 commit comments

Comments
 (0)