title: java hibernate: selecting the discriminator column in polymorphic hql query
body: <p>In hibernate, I want to select the discriminator value. Something like</p>
  
  <p><code>select discriminator, id, name, age from Animal</code></p>
  
  <p>The idea is to send the result of this query to the client side, so that I can display a different icon based on the value of the discriminator column (i.e. cat, dog, elephant, etc).</p>
  
  <p>Is that possible? How?</p>