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
Copy file name to clipboardExpand all lines: spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/AbstractStringBasedJpaQuery.java
Copy file name to clipboardExpand all lines: spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/JpaQueryRewriteIntegrationTests.java
Sometimes, no matter how many features you try to apply, it seems impossible to get Spring Data JPA to apply every thing
177
177
you'd like to a query before it is sent to the `EntityManager`.
178
178
179
-
You have the ability to get your hands on the query, right before it's sent to the `EntityManager` and "rewrite" it. That is,
180
-
you can make any alterations at the last moment.
179
+
You have the ability to get your hands on the query, right before it's sent to the `EntityManager` and "rewrite" it.
180
+
That is, you can make any alterations at the last moment.
181
+
Query rewriting applies to the actual query and, when applicable, to count queries.
182
+
Count queries are optimized and therefore, either not necessary or a count is obtained through other means, such as derived from a Hibernate `SelectionQuery`.
0 commit comments