what is the purpose and activity of SessionFactory in
hibernate?

Answer Posted / srikanth

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 ?    54 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the web module contain?

556


Why is java robust?

651


Which is latest technology in java?

484


What is javabeans component?

523


What is cascade delete?

558






What is DDP?

537


Where can I find java developers?

510


What is event and listener in java?

420


How is java development environment setup?

474


What is business logic?

532


Which server is best for java?

452


Why java is oop language?

542


Is string a primitive data type in java?

478


What is a jpanel in java?

492


What is java ee server?

462