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
you are to choose between two procedures,both of which copute the minimum value in an array of integers.one procedure returns the smallest integer if its array argument is empty. the other requires a nonempty array.which procedure should you choose and why?
What is layout in java?
What is the build file?
Is java procedural or object oriented?
What is the best java course?
What is javabeans component?
How do you make a class immutable in java?
What is event and listener in java?
How many types of objects are there in java?
What are the components and containers in java?
What is java ee sdk?
How do you compile java?
What is devops in java?
Describe the ear, war, and jar.
What is use of final keyword in java?