Migrate to Spring Data JPA 2.5

MSAL

Migrate applications to the latest Spring Data 2.5 release.

org.openrewrite.java.spring.data.UpgradeSpringData_2_5
mod run . --recipe=org.openrewrite.java.spring.data.UpgradeSpringData_2_5

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. Migrate to Spring Data 2.3
  2. Change method name org.springframework.data.jpa.repository.JpaRepository getOne(..) to getById
  3. Change method name org.springframework.data.jpa.repository.JpaRepository deleteInBatch(..) to deleteAllInBatch