Replace the OpenJPA persistence provider with EclipseLink in persistence.xml

MSAL

When migrating to EclipseLink, using OpenJPA providers in EclipseLink results in runtime errors. To resolve these errors, this recipe replaces the OpenJPA PersistenceProviderImpl in persistence.xml with the EclipseLink PersistenceProvider.

org.openrewrite.java.migrate.javaee7.OpenJPAPersistenceProvider
mod run . --recipe=org.openrewrite.java.migrate.javaee7.OpenJPAPersistenceProvider

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 XML tag value