StandardServiceRegistryBuilder builder = new StandardServiceRegistryBuilder();
StandardServiceRegistry serviceRegistry = builder.build();
cfg.buildSessionFactory(serviceRegistry);
On Apr 9, 2013, at 8:28 PM, Galder ZamarreƱo <galder(a)redhat.com> wrote:
Hi,
Re:
http://docs.jboss.org/hibernate/orm/4.2/quickstart/en-US/html_single/#hib...
The code there to build a session factory is deprecated, in particular the parameter-less
buildSessionFactory(), what's the correct way to build a session factory?
I'm doing this for a presentation, hence I want to avoid using deprecated methods :)
Cheers,
--
Galder ZamarreƱo
galder(a)redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
-------------------------
Best Regards,
Strong Liu <stliu at hibernate.org>
http://about.me/stliu/bio