Migrate setFlushMode() to setQueryFlushMode()
ProprietaryIn 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. MigrateSetFlushModeToSetQueryFlushModemod run . --recipe= io. moderne. hibernate. update70. MigrateSetFlushModeToSetQueryFlushModeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.