Change Hibernate dialect

MSAL

Change a Hibernate dialect type and its configuration in properties, YAML, persistence.xml and hibernate.cfg.xml. XML changes are limited to dialect properties in standard persistence descriptors and Hibernate configuration files.

org.openrewrite.hibernate.ChangeHibernateDialect

Required

The fully qualified dialect class to replace.

The fully qualified replacement dialect class.

mod run . --recipe=org.openrewrite.hibernate.ChangeHibernateDialect \ -P oldFullyQualifiedTypeName=org.hibernate.dialect.MySQL8Dialect \ -P newFullyQualifiedTypeName=org.hibernate.dialect.MySQLDialect

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 Change type