What is the role played by the sessionfactory interface in hibernate?



What is the role played by the sessionfactory interface in hibernate?..

Answer / Amit Prakash Tiwari

The SessionFactory interface in Hibernate is a factory that builds and returns new sessions. It creates a connection pool for database connections, compiles SQL queries, and maintains the second level cache (if enabled). Each sessionfactory instance corresponds to a unique database schema.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is the advantage of hibernate?

1 Answers  


How do you implement one to one relationship in hibernate with java annotation?

1 Answers  


List hibernate session interface methods?

1 Answers  


What are pojos?

1 Answers  


What is entitymanager persist?

1 Answers  


What is the hibernatetemplate class?

1 Answers  


What are the types of inheritance models in hibernate?

1 Answers  


What does orm consists of?

1 Answers  


How do you hibernate?

1 Answers  


Why is orm used?

1 Answers  


What are the best practices to follow with hibernate framework?

1 Answers  


What’s the usage of configuration interface in hibernate?

1 Answers  


Categories