title: Hibernate + embedded database - setup
body: <p>I have created Java application using Hibernate with this configuration:</p>
  
  <pre><code>&lt;hibernate-configuration&gt;
   &lt;session-factory&gt;
      &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost:3306     /bee&lt;/property&gt;
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
      &lt;property name="hibernate.query.factory_class"&gt;org.hibernate.hql.classic.ClassicQueryTranslatorFactory&lt;/property&gt;
      &lt;property name="connection.username"&gt;root&lt;/property&gt;
      &lt;property name="connection.password"/&gt;
      &lt;property name="hibernate.connection.charSet"&gt;UTF-8&lt;/property&gt;
      &lt;property name="hibernate.connection.characterEncoding"&gt;UTF-8&lt;/property&gt;
      &lt;property name="hibernate.connection.useUnicode"&gt;true&lt;/property&gt;
      &lt;mapping resource="DatabaseMapping.hbm.xml"/&gt;
   &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Everything works fine when Iam using jdbc:mysql://localhost..., but now I need to have the database embedded in my application. Which database should I use? I need to have all my data stored and load it after start the application, update data, save, delete. I use HQL query or SQL query.</p>
  
  <p>What is the simplest way to make the database embedded? I don´t want to change my queries. It would be fine to change only hibernate configuration and set it to the embedded database, is it possible?</p>