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 is component in java with example?

652


Is c++ more secure than java?

665


What is javac written?

668


Is advanced java and j2ee same?

645


What is actionerrors?

727


Why is java called object oriented?

672


Is java safe to download?

634


Is string an object in java?

602


Can I run seam in a j2ee environment?

677


How java is used in web applications?

668


What is the best java application server?

675


What is callback methods?

690


What is B2B?

744


What is java web technologies?

676


Who is java developer?

672