title: Hibernate Views using Annotations
body: <p>Learned that it is possible to write a <code>SELECT</code> where each row can be effectively mapped to an object:</p>
  
  <p><a href="https://stackoverflow.com/questions/901537/elegant-ways-to-handle-database-views-on-hibernate-entities">Elegant ways to handle database views on hibernate entities?</a></p>
  
  <p>However, all answers use XML.</p>
  
  <p><strong>How is this done using Annotations?</strong></p>
  
  <p>I am using <code>Hibernate 3.3.1 GA</code> &amp; <code>Hibernate Annotations 3.4 GA</code> which are a part of <code>JBoss 5.1</code> for <code>JDK6</code></p>