Update sessionFactory creation to use new Hibernate 4 API