title: How to manually invoke create-drop from JPA on Hibernate?
body: <p>I need this for an integration test. My environment is JBoss 7, EJB3 with JPA on Hibernate 4, H2 in-memory database and tests are run by Arquillian. I want to be able to drop the database and create it again will all tables based on <code>persistence.xml</code> and the entities. I know I can do it at the start of the application by specifying:</p>
  
  <pre><code>&lt;property name="hibernate.hbm2ddl.auto" value="create-drop" /&gt; 
  </code></pre>
  
  <p>But I need to do this manually from the code after the first drop and create happened.</p>
  
  <p>Is it possible? What is the easiest way?</p>