title: Challenge with getting correct mappings for aliases using Java+Hibernate+DB2
body: <p>I am writing a Java application using Hibernate and IBM DB2 9.7 LUW for database. I am using the SQLQuery API to read a custom SQL query string and execute it against the DB. The query contains aliases, i.e. <code>SELECT WORK.EMPLOYEE AS WORKEMPLOYEE</code>, just as an example.</p>
  
  <p>When retrieving the result set from DB with <code>list()</code> command, the resulting <code>map</code> does not contain the alias as key. So writing <code>map.containsKey("WORKEMPLOYEE")</code> returns <code>false</code>. I also tried using <code>query.setResultTransformer(AliasToEntityMapResultTransformer.INSTANCE)</code> but it did not change the situation.</p>