spring data

Spring Data JPA Tutorial: Pagination

My Spring Data JPA tutorial has taught us how we can create database queries and sort our query results with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. This search function sorts the returned todo entries in […] Read more

Spring Data JPA Tutorial: Sorting

My Spring Data JPA tutorial has taught us how we can create both static and dynamic database queries with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. However, we haven't paid any attention to one very important […] Read more

Spring Data JPA Tutorial: Creating Database Queries With Querydsl

The previous part of this tutorial described how we can create dynamic database queries with the JPA Criteria API. Although it is easy to create simple criteria queries, the JPA Criteria API has one major flaw: It is very hard to implement complex queries and even harder to read them. This blog post describes how […] Read more

The previous part of this tutorial described how we can create database queries with named queries. This tutorial has already taught us how we can create static database queries with Spring Data JPA. However, when we are writing real-life applications, we have to be able to create dynamic database queries as well. This blog post […] Read more

Spring Data JPA Tutorial Part Three: Custom Queries with Query Methods

The second part of my Spring Data JPA tutorial described how you can create a simple CRUD application with Spring Data JPA. This blog entry will describe how you can use query methods for creating custom queries with Spring Data JPA. In order to have a reasonable example, I have created three new requirements for […] Read more

Spring Data JPA Tutorial: CRUD

We have now configured the persistence layer of our Spring application. We are finally ready to create our first Spring Data JPA repository. This blog post describes how we can create a repository that provides CRUD operations for todo entries. Let’s get started. Additional Reading: If you are not familiar with Spring Data JPA, you […] Read more