Migrate LockOptions to direct parameters

Proprietary

Migrates deprecated LockOptions usage to direct parameters in method calls. As of JPA 3.2 and Hibernate 7, LockMode, Timeout, and PessimisticLockScope are passed directly to find(), refresh(), and lock() methods instead of being wrapped in a LockOptions object.

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

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