Migrate @Query to @NativeQuery for unsupported JPQL

Proprietary

Converts Spring Data @Query annotations to @NativeQuery when the JPQL query contains patterns unsupported by Hibernate 7's stricter JPQL parser, such as multi-argument trunc(date, 'format').

io.moderne.hibernate.update70.MigrateQueryToNativeQuery
mod run . --recipe=io.moderne.hibernate.update70.MigrateQueryToNativeQuery

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