I\'m just trying to learn Hibernate (version 4 final) but I have a problem when trying to create the session factory. Here is some code related to the problem:
hi
As of 4.3.0, even ServiceRegistryBuilder has been deprecated. This is how you would want to go about it
Configuration cfg=new Configuration().configure();
StandardServiceRegistryBuilder builder= new StandardServiceRegistryBuilder().applySettings(
cfg.getProperties());
SessionFactory factory= cfg.buildSessionFactory(builder.build());
And also you would have to import org.hibernate.boot.registry.StandardServiceRegistryBuilder
instead of org.hibernate.service.ServiceRegistryBuilder