HibernateUtil class to create sessionFactory for database access.