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

I’m new to WebLogic Does anyone knows how to Deploy Application using

1830


What is architecture neutral in java?

567


What is java transaction api (jta)?

596


What is ejb module?

596


Which edition of java is used for developing web application?

493






What is jaxr provider?

595


What is java actionlistener?

552


Why java is called robust and secure?

561


What is authorization constraint?

628


Which server is best for java?

539


to update a batch in a table in jdbc which method of statement object is used

1741


Is java a tool?

560


Who is java developer?

593


i want test pattern of zylog company and some examples also

2386


What is declaration?

645