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
I Want build and release interview questions
What is java servlet container?
What do you understand by business logic?
what is meant by proxy server
Explain j2ee architecture.
Give some advantages of orm (object-relational mapping)?
What is a jbutton in java?
What is java netbeans?
How can I be good in java?
What are the components of j2ee applications?
What is javaserver pages standard tag library (jstl)?
On which platform j2ee is based?
What are the modules of j2ee?
What is the difference between load() and get()?
What is java secure socket extension (jsse)?