Org. Hibernate. Dialect. Postgresqldialect Is Deprecated

Org. Hibernate. Dialect. Postgresqldialect Is Deprecated

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?

0

1 Answer

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.