Jim Richards Ok, cheers then. By the way, in Hibernate ORM 5.2, SessionFactory extends EntityManagerFactory and Session extends EntityManager, so most code may not need any adjustment at all and should work fine with a Session.