什么是最适合 postgresql 10.5 的 hibernate.dialect?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52869840/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the most suitable hibernate.dialect for postgresql 10.5?
提问by Leon
I am looking at hibernate documentation here: https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/dialect/package-summary.htmlto try to find which hibernate.dialect
to use inside persistence.xml
我在这里查看 hibernate 文档:https: //docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/dialect/package-summary.html尝试找到hibernate.dialect
在persistence.xml中使用哪个
It does not mention a class for Postgres 10.x. Should I use PostgreSQL94Dialect
?
它没有提到 Postgres 10.x 的类。我应该使用PostgreSQL94Dialect
吗?
回答by Trynkiewicz Mariusz
Looking at newest documentationand it's PostgreSQL95Dialect
查看最新的文档,它是PostgreSQL95Dialect