Find repository interfaces extending CrudRepository instead of JpaRepository

Proprietary

CrudRepository<T, ID> returns Iterable<T> from findAll() — fine for streaming, awkward for everything else. JpaRepository<T, ID> returns List<T> and adds pagination, sorting, and batch operations. Most JPA repositories should extend JpaRepository.

org.openrewrite.kotlin.spring.FindCrudRepositoryGenericList$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.spring.FindCrudRepositoryGenericList$KtRecipe'

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