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


Please Help Members By Posting Answers For Below Questions

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?

2171


What is layout in java?

475


What is the build file?

529


Is java procedural or object oriented?

470


What is the best java course?

509






What is javabeans component?

531


How do you make a class immutable in java?

476


What is event and listener in java?

430


How many types of objects are there in java?

471


What are the components and containers in java?

513


What is java ee sdk?

487


How do you compile java?

497


What is devops in java?

531


Describe the ear, war, and jar.

530


What is use of final keyword in java?

513