diff --git a/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryLookupStrategy.java b/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryLookupStrategy.java index d0125d5dd5..2a88a428ab 100644 --- a/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryLookupStrategy.java +++ b/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryLookupStrategy.java @@ -67,7 +67,8 @@ public AbstractQueryLookupStrategy(EntityManager em, * org.springframework.data.jpa.repository.query.QueryLookupStrategy * #resolveQuery(org.springframework.data.repository.query.QueryMethod) */ - public final RepositoryQuery resolveQuery(Method method) { + public final RepositoryQuery resolveQuery(Method method, + Class domainClass) { return resolveQuery(new JpaQueryMethod(method, provider, em), em); }