You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify Querydsl templates retrieva and String query caching. Update documentation. Skip selection list rewriting if the returned type is an interface.
Copy file name to clipboardExpand all lines: spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/AbstractStringBasedJpaQuery.java
+16-29
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,7 @@ abstract class AbstractStringBasedJpaQuery extends AbstractJpaQuery {
69
69
* @param valueExpressionDelegate must not be {@literal null}.
Copy file name to clipboardExpand all lines: spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/DtoProjectionTransformerDelegate.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,8 @@ public DtoProjectionTransformerDelegate(ReturnedType returnedType) {
Copy file name to clipboardExpand all lines: spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/FetchableFluentQueryByPredicate.java
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/repositories/projections.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This query gets rewritten to `SELECT new UserDto(u.firstname, u.lastname) FROM U
43
43
[WARNING]
44
44
====
45
45
JPQL constructor expressions must not contain aliases for selected columns.
46
-
While `SELECT u as user, count(u.roles) as roleCount FROM USER u ...` is a valid usecase for interfacebased 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 ...`. +
46
+
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 …`. +
47
47
Some persistence providers may be lenient about this, others not.
0 commit comments