title: Hibernate does not create tables automatically
body: <p>I have Maven project with Hibernate and Spring framework.
  I want Hibernate to create tables automatically, but all existing tables are just dropped and the required tables are not created.
  No exceptions are thrown during session factory initialization, but when I try save a <code>Player</code> entity, exception is thrown: </p>
  
  <blockquote>
    <p>com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'billboarddb.player' doesn't exist</p>
  </blockquote>
  
  <p>If I create the tables manually and change the property <code>hibernate.hbm2ddl.auto</code> to <code>"validate"</code>, then everything works fine.
  Do you have any idea, why Hibernate does not create the tables?</p>
  
  <p>Spring configuration file:</p>
  
  <pre><code>&lt;context:component-scan  base-package="org.meluk.billboard.business.controller" /&gt;
  &lt;tx:annotation-driven transaction-manager="txManager" /&gt;
  &lt;bean id="propertyConfigurer"  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="locations" &gt;
          &lt;list&gt;
              &lt;value&gt;/WEB-INF/config/jdbc.properties&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;property name="driverClassName" value="${hibernate.connection.driver_class}" /&gt;
      &lt;property name="url" value="${hibernate.connection.url}" /&gt;
      &lt;property name="username" value="${hibernate.connection.username}" /&gt;
      &lt;property name="password" value="${hibernate.connection.password}" /&gt;
  &lt;/bean&gt;
  &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" &gt;
      &lt;property name="dataSource" ref="dataSource" /&gt;
      &lt;property name="configLocation" value="/WEB-INF/hibernate.cfg.xml" /&gt;
      &lt;property name="packagesToScan" value="org.meluk.billboard.jpa" /&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;prop key="hibernate.dialect"&gt;${hibernate.dialect}&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;${hibernate.show_sql}&lt;/prop&gt;
              &lt;prop key="hibernate.hbm2ddl.auto"&gt;${hibernate.hbm2ddl.auto}&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.min_size"&gt;${hibernate.c3p0.min_size}&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.max_size"&gt;${hibernate.c3p0.max_size}&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.timeout"&gt;${hibernate.c3p0.timeout}&lt;/prop&gt;
              &lt;prop key="hibernate.c3p0.max_statements"&gt;${hibernate.c3p0.max_statements}&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
      &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>jdbc.properties file:</p>
  
  <pre class="lang-none prettyprint-override"><code>hibernate.connection.driver_class=com.mysql.jdbc.Driver
  hibernate.connection.url=jdbc:mysql://127.0.0.1:3306/BillboardDB
  hibernate.connection.username=root
  hibernate.connection.password=1234
  hibernate.default_schema=BillboardDB
  hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
  hibernate.hbm2ddl.auto=create
  hibernate.show_sql=true
  hibernate.c3p0.min_size=5
  hibernate.c3p0.max_size=20
  hibernate.c3p0.timeout=1800
  hibernate.c3p0.max_statements=50
  </code></pre>
  
  <p>Hibernate dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
    &lt;version&gt;${hibernateVersion}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
    &lt;version&gt;${hibernateVersion}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;hibernate-tools&lt;/artifactId&gt;
    &lt;version&gt;${hibernateToolsVersion}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>