In the Hibernate Core Reference Manual, linked at http://www.hibernate.org/docs.html, the HibernateUtil class listed under Startup and Helpers, at http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#tutorial-firstapp-helpers, uses the deprecated method buildSessionFactory() on a Configuration object.