what is the purpose and activity of SessionFactory in
hibernate?
Answer Posted / yograj pandey
SessionFactory is Hibernate's concept of a single datastore
and is threadsafe so that many threads can access it
concurrently and request for sessions and immutable cache of
compiled mappings for a single database. A SessionFactory is
usually only built once at startup. SessionFactory should be
wrapped in some kind of singleton so that it can be easily
accessed in an application code.
SessionFactory sessionFactory = new
Configuration().configure().buildSessionfactory();
Is This Answer Correct ? | 28 Yes | 6 No |
Post New Answer View All Answers
What is containers in java?
What is a j2ee container?
How to create object without using the keyword “new” in java?
Is java safe to download?
Explain connector architecture.
Is java is fully object oriented?
What is the best java compiler?
What is element?
Describe the file types *.ear, * .jar and *.war?
What is enterprise information system?
What is java j2ee developer?
What is java advanced?
What is home handle?
to update a batch in a table in jdbc which method of statement object is used
What do you understand by connector? Explain connector architecture.