Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate How do we create session factory in hibernate?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
How do we create session factory in hibernate?
1 Answer(s)      a year and 8 months ago
Posted in : Hibernate


Hi,

How do we create session factory in hibernate?

thanks,


Advertisement
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
 

 

 

DMCA.com