title: How to set hibernate.hbm2ddl.auto on deployment in Wildfly NOT using persistence.xml
body: <p>I need on deployment schema generation for a webapp that uses JPA.
  The server is Wildfly 9 with Hibernate as JPA provider.</p>
  
  <p>I can achieve this by adding </p>
  
  <pre><code>&lt;property name="hibernate.hbm2ddl.auto" value="create" /&gt;
  </code></pre>
  
  <p>to persistence.xml.</p>
  
  <p>Is there another way to set this property <strong>per webapp</strong> and <strong>on deployment</strong> in Wildfly 9? I also tried hibernate.properties, but this had no effect.</p>