Find EntityManager.createQuery(...) calls

Proprietary

Each JPA createQuery is a JPQL/HQL execution seed — when the query string is built from user input, the same injection class applies as for raw SQL. Flag for parameter-binding review.

org.openrewrite.kotlin.search.FindEntityManagerCreateQuery$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.search.FindEntityManagerCreateQuery$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.