Spring Data JPA Sorting and Pagination Tutorial with Example | SpringBoot Rest API Tutorial

preview_player
Показать описание
#springboottutorial #SpringDatajpaTutorial #restapi #javatutorial

In this video, I have discussed how to sort rest api and implement pagination using Spring Data JPA with SpringBoot. I have explained with live working code example.

Please find the below details and Code uploaded in GitHub.

JPA Query Sort By
Spring Data JPA Query example using Sort class with filtering:

List(Tutorial) findByTitleAndSort(String title, Sort sort);

List(Tutorial) findByPublishedAndSort(boolean isPublished, Sort sort);

JPA Query Pagination
Spring Data JPA Query example using Pageable class for Pagination (with sorting and filtering):

@Query("SELECT t FROM Tutorial t")
Page(Tutorial) findAllWithPagination(Pageable pageable);

► SUBSCRIBE & LIKE!!
► Important Information and code guide available bottom of the Description section

✅ ABOUT ME ✅
My name is Debu Paul. I am Currently working as a Senior Software Engineer in PayPal and on this channel I teach you about Java, Spring, Spring Boot, Rest API, Micro Service, Kafka, and other IT industry-related latest development, Testing tropic. I work hard to help you to understand latest technology and crack the interview and I will continue to do so in the future.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► Here is our amazing playlist for Core Java, Spring MVC/Boot, Git and Microservice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Watch my "Most Watched Videos"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What is Distributed Transactions
How to maintain Automicity in distributed Transaction
What is 2pc Pattern
What is SAGA pattern
What is Monolithic Architecture
What is Micro Service Architecture
Java Concurrency and Parallelism Tutorial
Java MultiThreading tutorial
Java tutorial
Javaconcurrencytutorial
core java tutorial
Future interface
Callable Interface
Runnable Interface
Callable Vs Runnable interface
Callable Vs Future Interface
Use of NewWorkStealingThreadPool method
How to develop asynchronous microservice
Spring Data JPA Tutorial and Spring Boot
How to sort the rest api
how to implement pagination in rest api
Spring boot Data JPA sorting and Pagination Tutorial
SPring boot Data JPA sorting and Pagination Code with example
Java Rest API Tutorial

Thanks & Regards,
Debu Paul
Рекомендации по теме
Комментарии
Автор

Sir please make one small project using spring boot

ghosh
Автор

sir, if we need to return the result from different queries based on parameters and all the results from queries added to one arraylist and return that arraylist result, .. how we need to implement pagination in this scenario? please clarify

deepthid
welcome to shbcf.ru