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

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

1751


What is connector?

574


Differentiate between .ear, .jar and .war files.

591


What is java 2 platform, micro edition (j2me)?

515


What is callback methods?

530






What is meant by j2ee?

496


Why is java called technology?

495


Define connection pooling?

507


What is advance java?

500


What is web container in j2ee?

533


What is j2ee api?

516


What are the advanced technologies in java?

477


What is repaint in java?

502


Define hashtable in j2ee?

548


What is event and listener in java?

420