Migrate dialects removed in Hibernate 7.0 to their generic equivalents

MSAL

Hibernate 7.0 removed the remaining version- and storage-specific dialect subclasses that still existed in Hibernate 6.x. The IBM-i (DB2400*) variants map to DB2iDialect, not the generic DB2Dialect; the HANA row/column-store variants and MariaDB 10.6 collapse into the generic HANADialect / MariaDBDialect, which autodetect behavior from the JDBC connection.

org.openrewrite.hibernate.MigrateRemovedDialectsHibernate70
mod run . --recipe=org.openrewrite.hibernate.MigrateRemovedDialectsHibernate70

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type DB2400Dialect to DB2iDialect
  2. Change type DB2400V7R3Dialect to DB2iDialect
  3. Change type MariaDB106Dialect to MariaDBDialect
  4. Change type AbstractHANADialect to HANADialect
  5. Change type HANAColumnStoreDialect to HANADialect
  6. Change type HANACloudColumnStoreDialect to HANADialect
  7. Change type HANARowStoreDialect to HANADialect