what is the purpose and activity of SessionFactory in
hibernate?

Answer Posted / rajan

To Create Session object to use hibernate in an
application SessionFactory is required.
When buildSessionFactory()method is called hibernate
decides about various sql statements,that has to be used to
access various tables and creates SeessionFactory object.
This operation is expensive and it should be used only once.

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java is a technology?

593


Is eclipse written in java?

614


What is the best java course?

581


What is external subset?

606


Explain j2ee architecture.

665






What is the difference between java and j2ee?

526


What software is needed for java programming?

527


Is java procedural or object oriented?

556


What is main method in java?

585


What is the latest technology used in java?

592


What are the topics in j2ee?

594


What is j2ee product provider?

630


Give some advantages of orm (object-relational mapping)?

627


What are the modules of j2ee?

591


What is 2 stands for in j2ee?

597