Polishing.

Mention restrictions.

See #3636
Original pull request: #3637
This commit is contained in:
Mark Paluch
2024-10-17 15:36:13 +02:00
parent eece4cf2c2
commit bcbb16ef60

View File

@@ -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>
@@ -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