title: configuring hyperjaxb to create hibernate mappings and a mysql database
body: <p>I am using hyperjaxb to generate Java classes from an xsd file.  How can I configure it to generate hibernate annotations, and to trigger <code>hbm2ddl</code> to create a MySQL database with tables for the generated classes?  </p>
  
  <p>I downloaded the purchase order sample for hibernate <a href="http://confluence.highsource.org/display/HJ3/Downloads" rel="nofollow noreferrer">from this link</a>, then navigated to the target directory in <code>cmd.exe</code> and ran <code>mvn clean install</code>, but the resulting folders did not contain any java classes, and this also did not contain any hibernate/MySQL.  I would like to get a working example that creates everything from a downloaded <code>xsd</code> file so that I can just plug my own <code>xsd</code> file into the code and have all the java/hibernate/mysql be autogenerated.  That way I can spend my time tweaking my <code>xsd</code> file so that the resulting java/hibernate/MySQL is what I need it to be.  </p>
  
  <p>A code example or step by step instructions would be really helpful.  I am using eclipse.  </p>
  
  <hr>
  
  <h2>**EDIT: **</h2>
  
  <p>The answer to this question came after posting a few other questions.  To find the complete answer to this question, you will need to review the answers to those other questions, in particular, <a href="https://stackoverflow.com/questions/26366556/no-persistence-provider-for-entitymanager-named-persistence-xml/26366709?noredirect=1">the one at this link</a>.</p>