title: Drop all tables at hibernate startup
body: <p>How can I configure hibernate in a way that it DROPS all tables before it runs, for developement purposes? I don't want to constantly DROP all tables by hand before running my code.</p>
  
  <p>I'm already using</p>
  
  <pre><code>&lt;property name="hbm2ddl.auto"&gt;create&lt;/property&gt;
  </code></pre>
  
  <p>But this does not seem to work, since I ran into several errors that where caused by wrong schemas from a previous run.</p>
  
  <p><strong>Edit</strong>
  Maybe my questions was a bit missleading. I want to have a clean database. Its not only because of actual runtime errors but also about having a clean database for every run.</p>
  
  <pre><code>&lt;property name="hbm2ddl.auto"&gt;create-drop&lt;/property&gt;
  </code></pre>
  
  <p>Ignores tables that are unknown to hibernate (which can happen quite often if you are playing around with tablenames).</p>