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



Home Answers Viewqa Hibernate-Interview-Questions Define the session factory interface in hibernate?

Have Programming Question? Ask it here!
 
 
 


ratna rathor
Define the session factory interface in hibernate?
1 Answer(s)      2 years and 3 months ago
Posted in : Hibernate Interview Questions


Define the session factory interface in hibernate?


Advertisement
View Answers

June 11, 2012 at 6:23 PM


Session factory is used for manageing the session objects.public interface SessionFactory extends Referenceable, Serializable.It is in org.hibernate.SessionFactory.

It works as a factory for session and a client of connection provider. It also holds an optional cah of data that is reusable between transactions at a process, or cluster.

There is single sessionFactory for each database.

SessionFactory sessionFactory = configuration.buildSessionFactory();



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com