Spring JPA: query builder versus criteria constructor, which one to use?

I am going to start a new project that will play with a very large database, so there will be many database operations.

I decided to use Spring JPA as my ORM. Spring JPA now provides various methods for use in the DAO layer. I am confused between criteria creator and Query DSL. Both seem to solve my problem well, and I think it makes no sense to use both of them in the same project, because they provide the same functionality.

So which one to use and why?

+5
source share
1 answer

API- JPA 2 Criteria Querydsl , Querydsl , JPQL/SQL. , JPQL, JPA 2.

blogpost , , Querydsl- API JPA 2 Criteria API Querydsl JPA 2 API

, Querydsl.

+5

All Articles