什么是最适合 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 02:44:08  来源:igfitidea点击:

What is the most suitable hibernate.dialect for postgresql 10.5?

postgresqlhibernatehibernate-5.xpostgresql-10

提问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.dialectto 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