title: How to enforce table creation order in hibernate
body: <p>I have the following JPA entities</p>
  <ol>
  <li><code>foo_accounts</code></li>
  <li><code>foo_account_configurations</code></li>
  </ol>
  <p>The hibernate ddl is set to auto generate the database schema, but foo_account_configurations is getting created first on spring boot application startup and fails on the FK enforcement.</p>
  <pre><code>alter table foo_account_configurations 
     add constraint FKtnq5xeucto3vlkd5y243sq411 
     foreign key (foo_account_id) 
     references foo_acc [42102-214]
  </code></pre>
  <p>How to enforce table creation order? This error happens <strong>only</strong> with the h2 database and not with the mysql database</p>