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
How is java development environment setup?
What is setbounds in java?
What is api in j2ee?
What is j2ee application model?
What are the four types of J2EE modules?
On which platform j2ee is based?
What is event and listener in java?
Which compiler is used in java?
What is caller?
What are the tools in java?
What is j2ee technology?
What is DDP?
What is callback methods?
What is the use of jit compiler in java?
What is cascade delete?