JPA Criteria WHERE Clause
The WHERE clause is used to apply conditions on database and fetch the data on the basis of that condition. In Criteria API, the where() method of AbstractQuery interface is used to set conditions.
Criteria WHERE Example
Here, we will perform several WHERE operations on student table. Let us assume the table contains the following records:-
Now, follow the below steps to perform operations: -
JPQL Greater Than and Less Than
Next TopicJPA Criteria GROUP BY Clause