Find @Entity classes with var properties only
ProprietaryJPA entities need mutable properties for the persistence provider to hydrate them, but a class X(var a: A, var b: B) form mixes that JPA requirement with full external mutability. Promote to data class (still mutable for JPA via the kotlin-jpa compiler plugin's synthesized no-arg ctor) to get equals/hashCode/toString and copy.
org. openrewrite. kotlin. spring. FindJpaEntityWithVarsOnly$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindJpaEntityWithVarsOnly$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.