Skip to content

Commit 4c1c3e8

Browse files
Polishing.
Fix reference in javadoc
1 parent f3cedc3 commit 4c1c3e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/QueryEnhancer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public interface QueryEnhancer {
8282
* @param sort the sort specification to apply.
8383
* @param alias the alias to be used in the order by clause. May be {@literal null} or empty.
8484
* @return the modified query string.
85-
* @deprecated since 3.5, use {@link #rewrite(Sort, ReturnedType)} instead.
85+
* @deprecated since 3.5, use {@link #rewrite(QueryRewriteInformation)} instead.
8686
*/
8787
@Deprecated(since = "3.5", forRemoval = true)
8888
String applySorting(Sort sort, @Nullable String alias);

src/main/antora/modules/ROOT/pages/repositories/projections.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This query gets rewritten to `SELECT new UserDto(u.firstname, u.lastname) FROM U
6868

6969
[WARNING]
7070
====
71-
JPQL constructor expressions must not contain aliases for selected columns.
71+
JPQL constructor expressions must not contain aliases for selected columns and query rewriting will not remove them for you.
7272
While `SELECT u as user, count(u.roles) as roleCount FROM USER u …` is a valid query for interface-based projections that rely on column names from the returned `Tuple`, the same construct is invalid when requesting a DTO where it needs to be `SELECT u, count(u.roles) FROM USER u …`. +
7373
Some persistence providers may be lenient about this, others not.
7474
====

0 commit comments

Comments
 (0)