what is the purpose and activity of SessionFactory in
hibernate?

Answer Posted / soumya ranjan

The main contract here is the creation of Session instances. Usually an application has a single SessionFactory instance and threads servicing client requests obtain Session instances from this factory.

The internal state of a SessionFactory is immutable. Once it is created this internal state is set. This internal state includes all of the metadata about Object/Relational Mapping.

Implementors must be threadsafe.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I Want build and release interview questions

3127


What is java servlet container?

512


What do you understand by business logic?

505


what is meant by proxy server

4168


Explain j2ee architecture.

601






Give some advantages of orm (object-relational mapping)?

551


What is a jbutton in java?

520


What is java netbeans?

494


How can I be good in java?

527


What are the components of j2ee applications?

599


What is javaserver pages standard tag library (jstl)?

498


On which platform j2ee is based?

527


What are the modules of j2ee?

510


What is the difference between load() and get()?

553


What is java secure socket extension (jsse)?

515