title: Hibernate doesn't create Table - Spring MVC
body: <p>I have spring project where I'm using hibernate. When I start project there is no change in db.</p>
  
  <p>I try difrenf configurations but nothings worked.</p>
  
  <p>Any ideas what can be wrong?</p>
  
  <p>Hibernate is configure in servlet.xml:</p>
  
  <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:context="http://www.springframework.org/schema/context"
           xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
           xmlns:beans="http://www.springframework.org/schema/beans"&gt;
  
  &lt;context:component-scan base-package="com.springapp.mvc"/&gt;
  
  &lt;!--Data source has the database information --&gt;
  &lt;beans:bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;beans:property name="driverClassName" value="org.postgresql.Driver"/&gt;
      &lt;beans:property name="url" value="jdbc:postgresql://localhost:5432/Praktyki"/&gt;
      &lt;beans:property name="username" value="dbusersolsoft"/&gt;
      &lt;beans:property name="password" value="dbpassSolsoft"/&gt;
  &lt;/beans:bean&gt;
  
  &lt;!-- Session Factory --&gt;
  
  
  &lt;beans:bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
      &lt;beans:property name="dataSource" ref="dataSource"/&gt;
      &lt;beans:property name="packagesToScan"&gt;
              &lt;value&gt;com.springapp.mvc.model&lt;/value&gt;
      &lt;/beans:property&gt;
      &lt;!--&lt;beans:property name="showSql" value="true" /&gt;--&gt;
      &lt;!--&lt;beans:property name="generateDdl" value="true" /&gt;--&gt;
      &lt;beans:property name="hibernateProperties"&gt;
  
          &lt;beans:props&gt;
              &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.HSQLDialect&lt;/prop&gt;
              &lt;prop key="hibernate.hbm2ddl.auto"&gt;update&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;false&lt;/prop&gt;
          &lt;/beans:props&gt;
      &lt;/beans:property&gt;
  
  
  &lt;/beans:bean&gt;
  
  &lt;bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor" /&gt;
  </code></pre>
  
  <p></p>