Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Object> result = new ArrayList();
- result.addAll(repoA.findAll());
- result.addAll(repoB.findAll());
- public interface repoAPaginationRepository extends PagingAndSortingRepository<A, Long> {
- Page<A> findAll(Pageable pageRequest);
- }
- public interface repoAPaginationRepository extends PagingAndSortingRepository<B, Long> {
- Page<B> findAll(Pageable pageRequest);
- }
Add Comment
Please, Sign In to add comment