org.springframework.data.mongodb.repository.support

Class QuerydslRepositorySupport

  • java.lang.Object
    • org.springframework.data.mongodb.repository.support.QuerydslRepositorySupport


  • public abstract class QuerydslRepositorySupport
    extends Object
    Base class to create repository implementations based on Querydsl.
    Author:
    Oliver Gierke, Mark Paluch
    • Method Detail

      • from

        protected <T> SpringDataMongodbQuery<T> from(com.querydsl.core.types.EntityPath<T> path)
        Returns a SpringDataMongodbQuery for the given EntityPath. 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 a SpringDataMongodbQuery for the given EntityPath querying the given collection.
        Parameters:
        path - must not be null
        collection - must not be blank or null
        Returns: