A Quick introduction to Querydsl compared to JPA 2 Criteria Api

Querydsl is a Java open-source project that supports statically typed queries. It provides a typesafe querying layer on top of JPA, JDO, JDBC and other backends through the use of various modules. The framework uses an annotation processor to generate Java types based on JPA entities. In this short article I’ll be focusing on Querydsl’s queries support for JPA and how it can be used as an alternative to Criteria Api. Of course the framework also allows to modify and delete records by JPAQueryFactory methods.

   Java  Querydsl  SQL  JPA  Maven 

Marcin Kilijański

Did you like this article?

A Quick introduction to Querydsl compared to JPA 2 Criteria Api