Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Mention restrictions.

See #3636
Original pull request: #3637
  • Loading branch information
mp911de committed Oct 17, 2024
1 parent eece4cf commit bcbb16e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ The resulting map contains key/value pairs representing the actual database colu
====
[source, java]
----
public interface UserRepository extends JpaRepository<User, Long> {
interface UserRepository extends JpaRepository<User, Long> {
@NativeQuery("SELECT * FROM USERS WHERE EMAIL_ADDRESS = ?1")
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
Map<String, Object> findRawMapByEmail(String emailAddress); <1>
@NativeQuery("SELECT * FROM USERS WHERE LASTNAME = ?1")
List<Map<String, Object>> findRawMapByLastname(String lastname); <2>
Expand All @@ -338,6 +338,11 @@ public interface UserRepository extends JpaRepository<User, Long> {
<2> Multiple `Map` results backed by ``Tuple``s.
====

NOTE: String-based Tuple Queries are only supported by Hibernate.
Eclipselink supports only Criteria-based Tuple Queries.

[[jpa.query-methods.at-query.projections]]

[[jpa.query-methods.sorting]]
== Using Sort

Expand Down

0 comments on commit bcbb16e

Please # to comment.