title: Difference between spring.jpa.properties.hibernate and spring.jpa.hibernate
body: <p>I am working on a spring boot project and using spring data jpa with Hibernate as JPA implementation.</p>
  <p>Currently in my application.yml I have the following properties,</p>
  <pre><code>spring:
      jpa:
          show-sql: true
          properties:
              hibernate:
                  format_sql: true
                  generate_statistics: true
          hibernate:
              ddl-auto: none
              dialect: org.hibernate.dialect.H2Dialect
  </code></pre>
  <p>There are Hibernate properties with different prefixes(<code>spring.jpa.properties.hibernate</code> and <code>spring.jpa.hibernate</code>)</p>
  <p>What is the purpose of having these difference and can they be used interchangeably, meaning can I replace <code>spring.jpa.properties.hibernate.format_sql</code> with <code>spring.jpa.hibernate.format_sql</code>?</p>