Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

How do we create session factory in hibernate?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How do we create session factory in hibernate?
1 Answer(s)      4 years and 3 months ago
Posted in : Hibernate

Hi,

How do we create session factory in hibernate?

thanks,

Ads
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,


Ads









Related Tutorials/Questions & Answers:
Advertisements