spring-data-jpa
spring-data-jpa copied to clipboard
Revise `DeclaredQuery` count query derivation
DeclaredQuery.deriveCountQuery(@Nullable String countQuery, @Nullable String countQueryProjection) is a strange way encapsulating a conditional block. Also, if the DeclaredQuery is already a count query: What is that method supposed to do?