Class JpaQueryLookupStrategy
java.lang.Object
org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
Query lookup strategy to execute finders.
- Author:
- Oliver Gierke, Thomas Darimont, Mark Paluch, RĂ©da Housni Alaoui, Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.data.repository.query.QueryLookupStrategy
create
(jakarta.persistence.EntityManager em, JpaQueryMethodFactory queryMethodFactory, org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, QueryRewriterProvider queryRewriterProvider, EscapeCharacter escape) Creates aQueryLookupStrategy
for the givenEntityManager
andQueryLookupStrategy.Key
.
-
Method Details
-
create
public static org.springframework.data.repository.query.QueryLookupStrategy create(jakarta.persistence.EntityManager em, JpaQueryMethodFactory queryMethodFactory, @Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, QueryRewriterProvider queryRewriterProvider, EscapeCharacter escape) Creates aQueryLookupStrategy
for the givenEntityManager
andQueryLookupStrategy.Key
.- Parameters:
em
- must not be null.queryMethodFactory
- must not be null.key
- may be null.evaluationContextProvider
- must not be null.escape
- must not be null.
-