Interface PageableRepository<E,​ID>

  • Type Parameters:
    E - The entity type
    ID - The ID type
    All Superinterfaces:
    CrudRepository<E,​ID>, GenericRepository<E,​ID>

    public interface PageableRepository<E,​ID>
    extends CrudRepository<E,​ID>
    A repository that supports pagination.
    Since:
    1.0.0
    • Method Detail

      • findAll

        @NonNull
        java.lang.Iterable<E> findAll​(@NonNull
                                      Sort sort)
        Find all results for the given sort order.
        Parameters:
        sort - The sort
        Returns:
        The iterable results
      • findAll

        @NonNull
        Page<E> findAll​(@NonNull
                        Pageable pageable)
        Finds all records for the given pageable.
        Parameters:
        pageable - The pageable.
        Returns:
        The results