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 |
What is the advantage of hibernate?
How do you implement one to one relationship in hibernate with java annotation?
List hibernate session interface methods?
What are pojos?
What is entitymanager persist?
What is the hibernatetemplate class?
What are the types of inheritance models in hibernate?
What does orm consists of?
How do you hibernate?
Why is orm used?
What are the best practices to follow with hibernate framework?
What’s the usage of configuration interface in hibernate?