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
What is authorization?
What is j2ee module?
What is digest authentication?
What is layout in java?
What is the best java course?
What is considered as a web component?
What is j2ee product provider?
Is c++ more secure than java?
What are the tools in java?
What are java front end tools?
Why is java considered dynamic?
How to invoke stored procedure in hibernate?
Give some advantages of orm (object-relational mapping)?
Which is best eclipse for java?
What are the modules of j2ee?