I have the following query
select sum(r.score)/count(r) from Rating as r
group by r.item
order by sum(r.score)/count(r) desc
My problem is that hibernate rounds the result sum(r.score)/count(r).
How can I force Hibernate to return the float value of the result?