Previously we discovered the advantages of repositories compared to classic DAO layer. We saw that repositories supported both native SQL and JPQL queries. But do they support other features of JPA, as Criteria API ? Yes, and we'll see it in this article.
Spring Expression Language (SpEL) est is used often in Spring Security project. But Spring Data also supports it.
In some of previous article we discovered how Hibernate and its JPA implementation work. We can use them as components for native-developed solutions. But we can also use them with Spring Framework.
Thanks to JPA module of Spring Data project we can simplify database querying. In this article we'll focus on it.