Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


asmit
criteria
1 Answer(s)      a year and 11 months ago
Posted in : Hibernate Interview Questions


Hi

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


Advertisement
View Answers

September 6, 2012 at 4:18 PM


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:

Hibernate Criteria Query to find max salary



Related Tutorials/Questions & Answers:
 

 

 

DMCA.com