Find native queries with enum parameters requiring SpEL conversion
ProprietaryWhen 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. FindNativeQueryRawEnumParametersmod run . --recipe= io. moderne. hibernate. update70. FindNativeQueryRawEnumParametersInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.