title: How to generate JPA Static-Metamodel without annotations?
body: <p>I would like to apply the JPA 2.0 Criteria API to a Hibernate legacy application in order to get type-safe queries. Manual model creation is not an option; neither is the introduction of annotations (i.e. converting *.hbm.xml mappings into JPA annotations).</p>
  
  <p>I tried to use Hibernate's <strong><em>"hibernate-jpamodelgen-4.3.6.Final.jar</em></strong>" generator without luck so far. The idea was to have a "dummy" entity to kick in Hibernate's annotation processor (<code>JPAMetaModelEntityProcessor</code>). Then, so my hopes, <code>JPAMetaModelEntityProcessor</code> would detect persistence.xml and would eventually be <em>smart</em> enough to also detect XML configured entities.</p>