title: Find base entity name from jpql
body: <p>I have a jpql and would like to find the alias for the base entity given in the jpql at run time. is it possible?</p>
  
  <p>eg <code>SELECT home FROM HomeEntity home WHERE homeId IS NOT NULL;</code></p>
  
  <p>i would like to find out the alias, in this case "home" from the query before executing it so that I can modify the query at run time like add an <code>ORDER BY home.createdDate</code> to the jpql before it is executed.</p>