Before migrating to Spring boot 3, we were using the PostgreSQL10Dialect in our apps. When migrating to Spring boot 3, I realized that Hibernate 6 no longer includes PostgreSQL10Dialect. I cannot find any mention of this in the Hibernate 6 migration guide.
What are we supposed to switch to? PostgreSQL95Dialect ?
CodePudding user response:
I realized that Hibernate 6 no longer includes
PostgreSQL10Dialect
.
So this is actually a mistake, it was supposed to have been left there as a deprecated stub to smooth migration, but it accidentally got deleted. (I will put it back for Hibernate 6.2.)
But anyway, you don't need it. In Hibernate 6:
- you don't usually need to explicitly specify a dialect, the right
Dialect
is almost always chosen automatically, and - we have moved away from "versioned" dialects, so the right dialect to use is just
PostgreSQLDialect
.