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

Why java is not 100% object oriented language?

581


how to run servlet program between two computer through internet ?

2615


How do I become an expert in java?

541


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

627


what is interface in java ?can you explain with simple example?and what is the difference between abstract and interface?

2143






Define the struts in the j2ee framework?

577


Define orm and its working in j2ee?

615


What should a junior java developer know?

554


Define authorization constraint?

614


What is callback methods?

605


What are j2ee concepts?

586


Explain j2ee architecture.

665


What do you understand by business logic?

574


What is the latest framework in java?

557


How java is reliable?

545