My SQL query is "SELECT productid,FORMAT(AVG(score),2) FROM product GROUP BY productid"
I am getting output as
1001 : 2.23,
1002 : -2.69
In Hibernate my query will be "SELECT product.productId,FORMAT(AVG(product.score),2) FROM ProductDAO product GROUP BY product.productId"
But the format function not supported in hibernate, is there any way to achieve decimal precision in hibernate?