How do I set the Hibernate dialect in SpringBoot?

2019-06-15 16:29发布

I have a custom dialect to set for Hibernate in SpringBoot. The dialect is for Gemfire. The instructions (https://discuss.zendesk.com/hc/en-us/articles/201724017-Pivotal-GemFire-XD-Hibernate-Dialect) are for XML-based config. However, I am using SpringBoot and I cannot figure out how to set this property.

The dialect is "com.pivotal.gemfirexd.hibernate.GemFireXDDialect"

2条回答
时光不老,我们不散
2楼-- · 2019-06-15 17:07

In application.properties

spring.jpa.properties.hibernate.dialect =com.pivotal.gemfirexd.hibernate.GemFireXDDialect

查看更多
Juvenile、少年°
3楼-- · 2019-06-15 17:12

You can use this approach as well:

spring.jpa.database-platform=com.pivotal.gemfirexd.hibernate.GemFireXDDialect
查看更多
登录 后发表回答