Skip to content

Commit bcbb16e

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

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
@@ -325,10 +325,10 @@ The resulting map contains key/value pairs representing the actual database colu
325325
====
326326
[source, java]
327327
----
328-
public interface UserRepository extends JpaRepository<User, Long> {
328+
interface UserRepository extends JpaRepository<User, Long> {
329329
330330
@NativeQuery("SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1")
331-
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
331+
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
332332
333333
@NativeQuery("SELECT * FROM USERS WHERE LASTNAME = ?1")
334334
List<Map<String, Object>> findRawMapByLastname(String lastname); <2>
@@ -338,6 +338,11 @@ public interface UserRepository extends JpaRepository<User, Long> {
338338
<2> Multiple `Map` results backed by ``Tuple``s.
339339
====
340340

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

0 commit comments

Comments
 (0)