Class QuerydslRepositorySupport
java.lang.Object
org.springframework.data.mongodb.repository.support.QuerydslRepositorySupport
Base class to create repository implementations based on Querydsl.
- Author:
- Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorDescriptionQuerydslRepositorySupport
(MongoOperations operations) Creates a newQuerydslRepositorySupport
for the givenMongoOperations
. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> SpringDataMongodbQuery<T>
from
(com.querydsl.core.types.EntityPath<T> path) Returns aSpringDataMongodbQuery
for the givenEntityPath
.protected <T> SpringDataMongodbQuery<T>
Returns aSpringDataMongodbQuery
for the givenEntityPath
querying the given collection.
-
Constructor Details
-
QuerydslRepositorySupport
Creates a newQuerydslRepositorySupport
for the givenMongoOperations
.- Parameters:
operations
- must not be null.
-
-
Method Details
-
from
Returns aSpringDataMongodbQuery
for the givenEntityPath
. The collection being queried is derived from the entity metadata.- Parameters:
path
-- Returns:
-
from
protected <T> SpringDataMongodbQuery<T> from(com.querydsl.core.types.EntityPath<T> path, String collection) Returns aSpringDataMongodbQuery
for the givenEntityPath
querying the given collection.- Parameters:
path
- must not be nullcollection
- must not be blank or null- Returns:
-