Tutorial :JPQL and SQL Criteria Api [closed]



Question:

JPA 1.0 specification is not defining the Criteria API which provides a programmatic approach for creating and modifying JPA Queries. Is there any API for building SQL and JPQL Queries like the way Hibernate Criteria Api is doing?


Solution:1

Querydsl is an API for type-safe construction of HQL (extended JPAQL), JDOQL and SQL queries. It can be seen as a type-safe of SQL and Criteria style querying APIs.


Solution:2

I have modified the Hibernate Criteria API to generate JPQL queries. Name of my project is Criteria2JPQL:

https://sourceforge.net/projects/criteria2jpql/


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »