Interface ExtendedSearchProjectionFactory<S extends ExtendedSearchProjectionFactory<?,​R,​E>,​R,​E>

    • Method Detail

      • withRoot

        S withRoot​(String objectFieldPath)
        Description copied from interface: SearchProjectionFactory
        Create a new projection factory whose root for all paths passed to the DSL will be the given object field.

        This is used to call reusable methods that can apply the same projection on different object fields that have same structure (same sub-fields).

        Specified by:
        withRoot in interface SearchProjectionFactory<S extends ExtendedSearchProjectionFactory<?,​R,​E>,​R>
        Parameters:
        objectFieldPath - The path from the current root to an object field that will become the new root.
        Returns:
        A new projection factory using the given object field as root.