what is the purpose and activity of SessionFactory in
hibernate?

Answer Posted / ram nidadavolu

Application obtains session instances from Session Factory.
Only single SessionFactory for the whole application.

SessionFactory caches generate SQL statements and other
mapping metadata that Hibernate uses at runtime.

Cached data that has been read in one unit of work and may
be reused in a future unit of work.

SessionFactory sessionFactory =
Configuration.buildSessionFactory();

Is This Answer Correct ?    29 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enterprise information system?

550


What are the four components of j2ee application?

564


What is build file?

532


What is application client container?

527


What is a java ee container?

474






What is a web container j2ee?

494


What is the latest technology used in java?

509


What is java j2ee developer?

469


What is java developer job description?

480


What is java ee architecture?

502


Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .

4405


What is frame in java?

509


What is archiving?

557


What is form-based authentication?

536


Is j2ee a framework?

485