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 are the four components of j2ee application?

560


Why awt is used in java?

496


What is urn?

524


What should a junior java developer know?

475


What is j2ee module?

588






What is server in j2ee?

477


What is a jbutton in java?

518


Is visual studio good for java?

490


Which software is used for java?

471


What is architecture neutral in java?

477


What does j2ee stand for?

478


Why java is a platform?

458


Is string a primitive data type in java?

478


Who gave the name java?

465


What is commit?

638