title: How to generate the JPA entity Metamodel?
body: <p>In the spirit of type safety associated with the <a href="http://java.sun.com/javaee/6/docs/api/javax/persistence/criteria/CriteriaQuery.html" rel="noreferrer">CriteriaQuery</a> JPA 2.0 also has an API to support <a href="http://java.sun.com/javaee/6/docs/tutorial/doc/gjiup.html" rel="noreferrer">Metamodel</a> representation of entities. </p>
  
  <p>Is anyone aware of a fully functional implementation of this API (to generate the Metamodel as opposed to creating the metamodel classes manually)? It would be awesome if someone also knows the steps for setting this up in Eclipse (I assume it's as simple as setting up an annotation processor, but you never know).</p>
  
  <p>EDIT:
  Just stumbled across <a href="http://docs.jboss.org/hibernate/stable/jpamodelgen/reference/en-US/html_single/" rel="noreferrer">Hibernate JPA 2 Metamodel Generator </a>. But the issue remains since I can't find any download links for the jar.</p>
  
  <p>EDIT 2:
  Awhile has passed since I asked this question, but I thought I'd come back and add a link to the <a href="http://sourceforge.net/projects/hibernate/files/hibernate-jpamodelgen/" rel="noreferrer">Hibernate JPA Model Generator project on SourceForge</a></p>