add accessor methods to sessionFactory and entityManager