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 event in java?

480


Why awt is used in java?

506


What are the most important topics in java?

499


What are the different java technologies?

498


Are java primitives objects?

477






What is component in java with example?

502


What is the difference between load() and get()?

560


What is j2ee specification?

500


What is context root?

568


What is connector?

582


What is container-managed transaction?

591


What are the tools in java?

479


Is java a tool?

489


Why java is not 100% object oriented language?

512


Which package is imported by default in java?

547