Remove unnecessary cast to Session for SessionFactory.createEntityManager()
ProprietaryIn Hibernate 7.0, SessionFactory.createEntityManager() explicitly returns Session, making casts to Session unnecessary.
io. moderne. hibernate. update70. RemoveUnnecessaryCastToSessionmod run . --recipe= io. moderne. hibernate. update70. RemoveUnnecessaryCastToSessionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.