Index HQL/JPQL positional parameters in method calls

Proprietary

Replaces unindexed ? positional parameters with indexed ?1, ?2, etc. in an HQL/JPQL query string passed as the first argument of a method matching the given pattern.

io.moderne.hibernate.update40.IndexHqlMethodPositionalParameters

Required

A method pattern whose first argument is an HQL/JPQL query string. Example: org.hibernate.Session createQuery(String,..).

mod run . --recipe=io.moderne.hibernate.update40.IndexHqlMethodPositionalParameters \ -P methodPattern='org.hibernate.Session createQuery(String,..)'

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