title: How to use custom data base dialect in spring data?
body: <p>I need to avoid some bug in db2 dialect in hibernate.
  I use spring data + gradle (several modules) + kotlin
  I  created my custom dialect</p>
  
  <pre><code>DB2zOSDialect : DB2Dialect() 
  </code></pre>
  
  <p>And try to add it to application.properties</p>
  
  <pre><code>spring:
    jpa:
      properties:
        hibernate:
          dialect: com.my.config.DB2zOSDialect 
  </code></pre>
  
  <p>But spring data continuous using DB2Dialect</p>
  
  <p>I tried the same code but using java + maven + the same spring data and it's works.</p>
  
  <p>So, i have no ideas why my custom dialect isn't being use by spring data.</p>
  
  <p>Are there ways how to add dialect to spring data?</p>