Introduction In this article, we are going to what is the best way to use the Spring Data JPA Specification when combining multiple predicates with the result set ordering logic. While you can also use query methods or the @Query annotation to define your Spring Data queries, the Spring Data JPA Specification allows you to compose dynamically various filtering criteria, which may be very convenient when you’d, otherwise, end up with lots of query method permutations. Domain Model and Repository Let’s assume we are using the following PostComment entity in our application:... Read More
The post The best way to use the Spring Data JPA Specification appeared first on Vlad Mihalcea.