Migrate setFlushMode() to setQueryFlushMode()

Proprietary

In Hibernate 7.0, CommonQueryContract.setFlushMode(FlushModeType) has been replaced with setQueryFlushMode(QueryFlushMode). This recipe migrates the method call and converts FlushModeType parameters to their QueryFlushMode equivalents.

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

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