title: Hibernate: Fetching columns with their aliases
body: <p>Consider this trivial query:</p>
  
  <p><code>SELECT 1 as first, 2 as second</code></p>
  
  <p>When using Hibernate we can then do something like:</p>
  
  <p><code>em.createNativeQuery(query).fetchResultList()</code></p>
  
  <p>However, there seem to be no way of getting the aliases (or column names). This would be very helpful for creating <code>List&lt;Map&lt;String, Object&gt;&gt;</code> where each map would be a row with their aliases, for instance in this case: <code>[{first: 1, second: 2}]</code>.</p>
  
  <p>Is there a way to do something like that?</p>