How do I set the Hibernate dialect in SpringBoot?

三世轮回 提交于 2019-12-10 12:46:55

问题


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"


回答1:


In application.properties

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



回答2:


You can use this approach as well:

spring.jpa.database-platform=com.pivotal.gemfirexd.hibernate.GemFireXDDialect


来源:https://stackoverflow.com/questions/38581074/how-do-i-set-the-hibernate-dialect-in-springboot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!