Migrate org.springframework.orm.hibernate5 to org.springframework.orm.jpa.hibernate
ProprietarySpring Framework 7.0 removed org.springframework.orm.hibernate5. The classes that remain public moved to org.springframework.orm.jpa.hibernate, and the Hibernate-specific DataAccessException subclasses were replaced by the generic types that HibernateExceptionTranslator now throws. HibernateTemplate and HibernateDaoSupport were removed; calls with a direct Hibernate Session equivalent are rewritten and the rest are flagged with a TODO comment. The open-session-in-view support was also removed and is not migrated by this recipe.
io. moderne. java. spring. framework7. MigrateHibernate5Packagemod run . --recipe= io. moderne. java. spring. framework7. MigrateHibernate5PackageInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.