Module spring.data.mongodb
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
ConstructorsConstructorDescriptionQuerydslRepositorySupport(MongoOperations operations) Creates a newQuerydslRepositorySupportfor the givenMongoOperations. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> SpringDataMongodbQuery<T>from(com.querydsl.core.types.EntityPath<T> path) Returns aSpringDataMongodbQueryfor the givenEntityPath.protected <T> SpringDataMongodbQuery<T>Returns aSpringDataMongodbQueryfor the givenEntityPathquerying the given collection.
-
Constructor Details
-
QuerydslRepositorySupport
Creates a newQuerydslRepositorySupportfor the givenMongoOperations.- Parameters:
operations- must not be null.
-
-
Method Details
-
from
Returns aSpringDataMongodbQueryfor 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 aSpringDataMongodbQueryfor the givenEntityPathquerying the given collection.- Parameters:
path- must not be nullcollection- must not be blank or null- Returns:
-