Although Spring Data JPA provides an excellent support for implementing CRUD operations and creating database queries, sometimes we need to do things that are not supported by it. For example, Spring Data JPA doesn't provide a built-in support for querying DTOs by using SQL. Luckily for us, we can "extend" our Spring Data JPA repositories […] Read More about Spring Data JPA Tutorial: Adding Custom Methods to a Single Repository
Blog (87 / 94)
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 about Spring Data JPA Tutorial: Pagination
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 about Spring Data JPA Tutorial: Sorting
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 about Spring Data JPA Tutorial: Creating Database Queries With Querydsl
Installing PostgreSQL 9.1 to Windows 7 from the Binary Zip Distribution
Today I was helping a colleague of mine to install and configure PostgreSQL 9.1 to his laptop which was running on Windows 7. We had several problems with the one click installer and after the installation process was finished, we could not start the PostgreSQL database. Since we could not solve this problem in a […] Read More about Installing PostgreSQL 9.1 to Windows 7 from the Binary Zip Distribution
Spring Data JPA Tutorial: Creating Database Queries With the JPA Criteria API
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 about Spring Data JPA Tutorial: Creating Database Queries With the JPA Criteria API