pagination

The pagination allows us to split the data content list into evenly distributed chunks and represent them as if separate pages, hence the naming. It also gives a user an opportunity to navigate easily through the pages. The best example I can come up with is the Goooooooooogle pagination, when you search something and the search result comes with a previous link, an increasing sequence of 10 consecutive integer links and a next link. Here we are going to create a similar one for a random entity data type using Spring Data JPA.