Remove unnecessary cast to Session for SessionFactory.createEntityManager()

Proprietary

In Hibernate 7.0, SessionFactory.createEntityManager() explicitly returns Session, making casts to Session unnecessary.

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

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