When I hit the database with PagingAndSortingRepository.findAll(Pageable) I get Page. However, I want to expose DTO\'s to the clien
PagingAndSortingRepository.findAll(Pageable)
Page
And in java8:
Page entities = objectEntityRepository.findAll(pageable) .map(ObjectDto::fromEntity);
Where fromEntity is a static method on ObjectDto that contains the conversion logic.