title: Hibernate ("showSql", "true") in javaconfig doesn't work
body: <p>I use JPA with Hibernate as persistence provider, and I configure it with below configuration class.
  The problem is that I never see SQL statements compiled by Hibernate though I have showSql=true in additional properties. Please check below. Now it is <code>properties.setProperty("hibernate.showsql", "true");</code>, but I also tried <code>properties.setProperty("showSql", "true");</code> with no effect.
  I don't have persistence.xml and I don't use root-context.xml.
  My servlet-context.xml contains only </p>
  
  <pre><code>&lt;mvc:annotation-driven /&gt;
  
      &lt;beans:bean
          class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor" /&gt;
  
      &lt;task:annotation-driven /&gt;
  </code></pre>
  
  <p>Also, my meta-inf/log4j.xml has all loggers on INFO level including</p>
  
  <pre><code>&lt;logger name="org.hibernate.SQL"&gt;
      &lt;level value="info" /&gt;
  &lt;/logger&gt;
  </code></pre>
  
  <p>which I added without any effect as well.
  What am I doing wrong?</p>
  
  <pre><code>    @Configuration
  @EnableTransactionManagement
  @ComponentScan("com")
  public class MySQLconfiguration {
  
      @Bean
      public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
            LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
            em.setDataSource(dataSource());
            em.setPackagesToScan(new String[] { "com" });
  
       em.setPersistenceProviderClass(HibernatePersistenceProvider.class);
            JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
            em.setJpaVendorAdapter(vendorAdapter);
            em.setJpaProperties(additionalProperties());
            return em;
         }
  
  
      @Bean(destroyMethod = "close")
      public DataSource dataSource(){
          HikariConfig hikariConfig = new HikariConfig();
          hikariConfig.setDriverClassName("com.mysql.jdbc.Driver");
          hikariConfig.setJdbcUrl("jdbc:mysql://localhost:3306/test"); 
          hikariConfig.setUsername("user");
          hikariConfig.setPassword("user");
          hikariConfig.setMaximumPoolSize(5);
          hikariConfig.setMaxLifetime(30000);
          hikariConfig.setIdleTimeout(30000);
          hikariConfig.setConnectionTestQuery("SELECT 1");
          hikariConfig.setPoolName("springHikariCP");
  
          hikariConfig.addDataSourceProperty("dataSource.cachePrepStmts", "true");
          hikariConfig.addDataSourceProperty("dataSource.prepStmtCacheSize", "250");
          hikariConfig.addDataSourceProperty("dataSource.prepStmtCacheSqlLimit", "2048");
          hikariConfig.addDataSourceProperty("dataSource.useServerPrepStmts", "true");
          HikariDataSource dataSource = new HikariDataSource(hikariConfig);
          return dataSource;
      }
  
  
       @Bean
         public PlatformTransactionManager transactionManager(EntityManagerFactory emf){
            JpaTransactionManager transactionManager = new JpaTransactionManager();
            transactionManager.setEntityManagerFactory(emf);
            return transactionManager;
         }
  
       @Bean
         public PersistenceExceptionTranslationPostProcessor exceptionTranslation(){
            return new PersistenceExceptionTranslationPostProcessor();
         }
  
         Properties additionalProperties() {
            Properties properties = new Properties();
            properties.setProperty("hibernate.hbm2ddl.auto", "update");
            properties.setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLInnoDBDialect");
            properties.setProperty("hibernate.archive.autodetection", "class");
            properties.setProperty("hibernate.showSql", "true");
            return properties;
         }
  
  }
  </code></pre>