Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: criteria for multiple counts in a select query
PostPosted: Mon May 14, 2012 5:58 am 
Newbie

Joined: Fri Nov 19, 2010 4:02 am
Posts: 11
Hi,

Can anyone please help me out in converting the below query to a hibernate criteria.

select count(emp_id), SUM(emp_salary) from employee.

Regards,
Harish


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.