title: How to escape reserved words in Hibernate's HQL
body: <p>I use the following query to get a <code>java.util.Map</code> with indexes <code>id</code>, <code>text</code> and <code>object</code>:</p>
  
  <pre><code>Query q = mySession.createQuery(
      "SELECT u.id AS id, u.name AS text, u AS object FROM User u")
      .setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
  </code></pre>
  
  <p>... but <code>object</code> seems to be a reserved word. For example <code>obj</code> is OK. What is the current way to escape an <em>alias</em> in HQL the way MySQL uses backtick escapes?</p>
  
  <p>Using backtick gives the following error:</p>
  
  <pre><code>Exception in thread "main" org.hibernate.QueryException: unexpected char: 
  '`' [SELECT u.id AS id, u.name AS text, u AS `object` FROM User u]
  </code></pre>