title: Upgrading from Hibernate 3.6 to 4.0.1 is now giving warnings about the configuration
body: <p>Just updated from Hibernate 3.6 to Hibernate 4, now getting</p>
  
  <pre><code>10-Feb-2012 14:12:31 org.hibernate.dialect.DerbyDialect &lt;init&gt;
  WARN: HHH000430: The DerbyDialect dialect has been deprecated; use one of the version-specific dialects instead
  10-Feb-2012 14:12:31 org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator c3p0ProviderPresent
  WARN: HHH000022: c3p0 properties were encountered, but the org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider provider class was not found on the classpath; these properties are going to be ignored.
  </code></pre>
  
  <p>I changed </p>
  
  <pre><code>config.setProperty("hibernate.dialect","org.hibernate.dialect.DerbyDialect");
  </code></pre>
  
  <p>to </p>
  
  <pre><code>config.setProperty("hibernate.dialect","org.hibernate.dialect.DerbyTenSevenDialect");
  </code></pre>
  
  <p>and I added</p>
  
  <pre><code>config.setProperty("org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator","org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider");
  </code></pre>
  
  <p>buts its made no difference</p>
  
  <p>I use maven to configure my project, the relvent dependenices are</p>
  
  <pre><code>&lt;dependency&gt;
        &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
        &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
        &lt;version&gt;4.0.1.Final&lt;/version&gt;
          &lt;exclusions&gt;
            &lt;exclusion&gt;
              &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
              &lt;artifactId&gt;jta&lt;/artifactId&gt;
            &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;c3p0&lt;/groupId&gt;
        &lt;artifactId&gt;c3p0&lt;/artifactId&gt;
        &lt;version&gt;0.9.1.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
      &lt;artifactId&gt;jta&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
        &lt;artifactId&gt;persistence-api&lt;/artifactId&gt;
        &lt;version&gt;1.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.derby&lt;/groupId&gt;
        &lt;artifactId&gt;derby&lt;/artifactId&gt;
        &lt;version&gt;10.8.2.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.javassist&lt;/groupId&gt;
        &lt;artifactId&gt;javassist&lt;/artifactId&gt;
        &lt;version&gt;3.15.0-GA&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>