title: How to create database in Hibernate at runtime?
body: <p>I'm using Hibernate tenancy and every time user logs I'm changing database to his username (SQLite). Sadly sometimes the database does not exists and I need to create it.</p>
  
  <p>The problem is that I don't know how to create all tables in database at runtime.</p>
  
  <p>Normally Hibernete creates for me db with this:</p>
  
  <pre><code>&lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
  </code></pre>