Find native queries with enum parameters requiring SpEL conversion

Proprietary

When using @NativeQuery or @Query(nativeQuery = true), enum parameters are not automatically converted by JPA. This recipe finds native queries with raw enum bind parameters that need SpEL expressions like :#{#status.name()} or :#{#status.ordinal()} depending on how the enum is persisted.

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

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