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 technology stack?

667


What is the best java course?

704


What is j2ee called now?

675


What should a junior java developer know?

643


What is j2ee architecture?

643


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

738


What is a plugin in java?

666


What is java api for xml processing (jaxp)?

727


What are j2ee technologies?

640


What is java naming and directory service?

705


What are the different java technologies?

654


On which platform j2ee is based?

711


explain the technologies that j2ee platform provides for developing components.

654


What does enterprise javabeans module contain?

679


What are the j2ee client types?

684