When I updated version of Hibernate from 3.6.8.final to 4.0.0.final I got a warning about deprecated method buildSessionFactory() in this line:
private static final SessionFactory sessionFactory =
new Configuration().configure().buildSessionFactory();
the javadoc recommends use of another method
buildSessionFactory(ServiceRegistry serviceRegistry)
but in the documentation I found deprecated variant :(
Can you help me with this little misunderstanding ?