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

What is java actionlistener?

474


What is the J2EE module?

612


What are the j2ee client types?

515


What is data?

544


How to invoke stored procedure in hibernate?

488






What is included in j2ee?

498


What is Connector architecture?

505


Why is java called technology?

495


What are the j2ee technologies?

483


How many types of component events are in java?

478


What is declarative security ?

572


What is DDP?

537


Is java important for my computer?

478


What are the advantages in the use of spring for application development?

522


What is enterprise information system resource?

548