CWitherow wrote:
According to the Hibernate migration guide for 3.2 (
http://www.hibernate.org/250.html), count(*) now returns long.
Curtis ...
this was a fantastic solution, thnx for this solution, it worked, i changed my type from short to long and it worked for me !!!!!one more question, is it compulsory to use pojo class in hibernate query?
eg- my query is :
select new UpdateCountDataBean(count(actionId), pname) from ActivityMaster group by pname
where UpdateCountDataBean is not a POJO. instead if i use a pojo class named "UpdateCount", it works, so is it like tht we have to use pojo compulsorily?