# Page findByCategory("books", PageRequest.of(1, 10, Sort.by("id"))) select p1_0.id,p1_0.category,p1_0.name,p1_0.price from product p1_0 where p1_0.category=? order by p1_0.id offset ? rows fetch first ? rows only select count(*) from product p1_0 where p1_0.category=? statements: 2, rows: 10, totalElements: 25, totalPages: 3, hasNext: true # Slice findSliceByCategory("books", PageRequest.of(1, 10, Sort.by("id"))) select p1_0.id,p1_0.category,p1_0.name,p1_0.price from product p1_0 where p1_0.category=? order by p1_0.id offset ? rows fetch first ? rows only statements: 1, rows: 10, hasNext: true (no totalElements exists on a Slice) # List findListByCategory("books", PageRequest.of(1, 10, Sort.by("id"))) select p1_0.id,p1_0.category,p1_0.name,p1_0.price from product p1_0 where p1_0.category=? order by p1_0.id offset ? rows fetch first ? rows only statements: 1, rows: 10 (no total, no hasNext)