Hello,
I was going through hibenate documentation and found that it is possible to return map from HQL by using code:
select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n )
from Cat cat
But I am not able to understand when I execute query how to get map and use alias for retrieving each column.
The method for getting results are either query.list of query.iterate.
Which function to call if I need to get result as map and how to retrieve each column from map using alias.
Thanks
|