What is a sessionfactory?



What is a sessionfactory?..

Answer / Adarsh Kumar Singh

SessionFactory in Hibernate is an object responsible for creating Session objects. It's created once per VM (Virtual Machine) during application startup and reused throughout the application lifecycle to obtain Sessions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How create hibernate cfg xml?

1 Answers  


How to add Hibernate mapping file in hibernate configuration file?

1 Answers  


What is @transactional in hibernate?

1 Answers  


Is hibernate configuration file mandatory?

1 Answers  


What is the role of session interface in hibernate?

1 Answers  


What the four ORM levels are in hibernate?

1 Answers  


What are the best practices to follow with hibernate framework?

1 Answers  


What is spring hibernate integration?

1 Answers  


What is hibernate session factory?

1 Answers  


What are the cascade types in hibernate?

1 Answers  


Why we are using jpa annotation instead of hibernate?

1 Answers  


What are the 3 levels of orm?

1 Answers  


Categories