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

Is java part of oracle?

474


How many types of component events are in java?

481


What does j2ee stand for?

484


What is java ee technologies?

470


What is java developer?

474






What is the use of jit compiler in java?

483


What is server in j2ee?

479


What is j2ee api?

522


Which compiler is used in java?

480


What is actionerrors?

528


What is a java ee container?

474


What is jbutton in java?

500


What is business logic?

535


What does the web module contain?

568


How many types of objects are there in java?

467