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 do I run java?
Why is java considered dynamic?
What is application configuration resource file?
Is object a composite data type in java?
Why java is oop language?
What is interpreter in java?
What is a web container in j2ee?
Are java primitives objects?
What is isv?
What is B2B?
What is api in j2ee?
What is source file in java?
Difference between load and get method?
What is component contract?
What are types of j2ee clients?