dev/java/spring
Offset and Keyset Pagination with Spring Data JPA - Thorben Janssen
Pagination is a common and easy approach to ensure that huge result sets don’t slow down your application. The idea is simple. Instead of fetching the entire result set, you only fetch the subset you want to show in the UI or process in your business code. When doing that, you can choose between 2...
Spring Data JPA save() Method Explained
Spring data jpa save use returned instance: Use Spring Data JPA save() returned instance to ensure entity updates are properly persisted.