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.QueryLookupStrategycreate(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 aQueryLookupStrategyfor the givenEntityManagerandQueryLookupStrategy.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 aQueryLookupStrategyfor the givenEntityManagerandQueryLookupStrategy.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.
-