Add CrudRepository to interfaces extending PagingAndSortingRepository

MSAL

In Spring Data 3.0, PagingAndSortingRepository no longer extends CrudRepository. Interfaces that extend only PagingAndSortingRepository must also explicitly extend CrudRepository to retain CRUD methods like save(), findById(), and delete().

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

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