弃用org.hibernate.dialect.PostgreSQLDialect [英] org.hibernate.dialect.PostgreSQLDialect is deprecated

查看:662
本文介绍了弃用org.hibernate.dialect.PostgreSQLDialect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将Hibernate的配置添加到了我的应用程序中,并且IntelliJ Idea抱怨此方言已被弃用:

I've just added configuration for Hibernate to my application and IntelliJ Idea is complaining that this dialect is deprecated:

<property name="hibernate.dialect">
   org.hibernate.dialect.PostgreSQLDialect
</property> 

在互联网上似乎不是一个明确的解决方案,有什么建议吗?

Does not seem to be a clear solution on the internet, any suggestions?

推荐答案

您需要使用

You need to use org.hibernate.dialect.PostgreSQL82Dialect instead.

PostgreSQLDialect Javadoc:

This is documented in PostgreSQLDialect Javadoc:

已弃用.
改用PostgreSQL82Dialect

Deprecated.
use PostgreSQL82Dialect instead

但是请注意,您应该使用与您使用的PostgreSQL JDBC驱动程序最匹配的方言(

Note however that you should use the dialect that best matches the PostgreSQL JDBC driver you are using (list here). For example, if you are using PostgreSQL 9.4 or later, use PostgreSQL94Dialect instead.

这篇关于弃用org.hibernate.dialect.PostgreSQLDialect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆