How do we create session factory in hibernate?

Hi,

How do we create session factory in hibernate?

thanks,

View Answers

April 18, 2013 at 12:34 PM

Hi,

At the time of creating an application, we uses Hibernate to get by the application persistence object that require a sessionFacotory. This Session Factory create or open a session to talk to a database. To making a SessionFactory we can specify this configuration in hibernate.properties i.e. hibernate.cfg.xml or create it programatically. In this tutorial you will find detailed concepts with examples.

For details about Hibernate SessionFactory visit this link:

http://www.roseindia.net/hibernate/hibernate4/HibernateSessionFactory.shtml

Thanks,









Related Tutorials/Questions & Answers:
Advertisements