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

Describe the file types *.ear, * .jar and *.war?

497


Which compiler is used in java?

470


What is java 2 platform, standard edition (j2se)?

511


Is java is fully object oriented?

502


What is the best java compiler?

466






Is eclipse written in java?

537


Is java more difficult than c++?

466


Explain jta, jndi, and jms.

607


What is initialization parameter?

566


What is java mobile?

478


What is component contract?

515


What is java used for in technology?

457


What is advance java?

494


What do you mean by j2ee module?

524


Define hashtable in j2ee?

538