org.hibernate.dialect.PostgreSQLDialect is deprecated

后端 未结 1 1967
闹比i
闹比i 2020-12-30 19:54

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



        
相关标签:
1条回答
  • 2020-12-30 20:40

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

    This is documented in PostgreSQLDialect Javadoc:

    Deprecated.
    use PostgreSQL82Dialect instead

    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.

    0 讨论(0)
提交回复
热议问题