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

What is java api for xml registries (jaxr)?

727


What is archiving?

696


What is java naming and directory service?

693


What is setfocusable in java?

784


What is entity reference?

677






Is java an assembly language?

653


What is component in java with example?

641


Why is java more secure?

642


What is a jbutton in java?

679


What is application client?

705


Is python more secure than java?

721


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

1691


How does event listener work in java?

643


What are the components of J2EE application?

719


What is j2ee server?

709