JPQL
About
Some of the Features of JPQL
JPQL Query Types
1. Basic SELECT
TypedQuery<Employee> query = em.createQuery(
"SELECT e FROM Employee e", Employee.class);
List<Employee> result = query.getResultList();2. SELECT with WHERE Clause
3. Selecting Specific Fields (Projection)
4. Using Aggregate Functions
5. GROUP BY and HAVING
6. JOINs (Entity Relationships)
7. ORDER BY Clause
8. IN Clause
9. LIKE Clause (Pattern Matching)
10. Subqueries
11. UPDATE and DELETE
12. Constructor Expressions (DTO Projection)
Limitations of JPQL
Last updated