
Hi
how to find highest salary of an employee using criteria in hibernate?

Here is a code that finds the maximum salary among the employees from the database using Hibernate Criteria.
Criteria criteria=session.createCriteria(Employee.class);
criteria.setProjection(Projections.max("salary"));
For more information, visit the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
