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 mean by connection pooling?

524


What is a java application client?

498


What is core java and j2ee?

484


What is the best java course?

480


What is external subset?

525






Is java gui dead?

489


Is java a tool?

459


What is java ee used for?

430


whay java does not support bass by reference

2332


What is a panel java?

529


What is java mobile?

467


Is java still slow?

475


What are the four components of j2ee application?

541


What is the preferred size of a component in java?

432


Explain the j2ee tiers.

462