Skip to content
Advertisement

How to use custom data base dialect in spring data?

I need to avoid some bug in db2 dialect in hibernate. I use spring data + gradle (several modules) + kotlin I created my custom dialect

JavaScript

And try to add it to application.properties

JavaScript

But spring data continuous using DB2Dialect

I tried the same code but using java + maven + the same spring data and it’s works.

So, i have no ideas why my custom dialect isn’t being use by spring data.

Are there ways how to add dialect to spring data?

Advertisement

Answer

So, i solved problem by my own, but i still don’t know why behavior is different.

I set

JavaScript

and added

JavaScript

And wrote simple resolver

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement