Replace @Query annotation by @NativeQuery when possible
MSALReplace @Query annotation by @NativeQuery when nativeQuery = true. @NativeQuery was introduced in Spring Data JPA 3.4.
org. openrewrite. java. spring. data. MigrateQueryToNativeQuerymod run . --recipe= org. openrewrite. java. spring. data. MigrateQueryToNativeQueryInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.