title: returning Map in HQL
body: <p>I was going through hibenate documentation and found that it is possible to return map from HQL by using code: </p>
  
  <pre><code>select new map( max(bodyWeight) as max, min(bodyWeight) as min, count(*) as n ) 
  from Cat cat 
  </code></pre>
  
  <p>But I am not able to understand when I execute query how to get map and use alias for retrieving each column. </p>
  
  <p>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. </p>
  
  <p>thanks</p>