Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happened to PostgreSQL10Dialect in Hibernate 6.x?

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 ?

like image 992
Daniel Avatar asked Nov 17 '25 03:11

Daniel


1 Answers

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.
like image 193
Gavin King Avatar answered Nov 18 '25 19:11

Gavin King



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!