Is sessionfactory immutable?



Is sessionfactory immutable?..

Answer / Shashi Bhushan Singh

SessionFactory is not immutable. It is a thread-safe, singleton object that manages connections to the database and creates Sessions for interacting with the database. However, it can be configured to be rebuilt if its cache needs to be refreshed or if schema changes are made.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is hibernate mapping file?

1 Answers  


What is hibernate and spring java?

1 Answers  


What are the inheritance mapping models in hibernate?

1 Answers  


What are different states of an entity bean?

1 Answers  


What are the steps of calling a stored procedure in hibernate?

1 Answers  


What is transaction management in hibernate? How it works?

1 Answers  


How to configure hibernate in spring boot?

1 Answers  


What are the benefits does hibernatetemplate provide?

1 Answers  


What is a configuration in hibernate?

1 Answers  


Explain the types of hibernate instance states.

1 Answers  


Which is better hibernate or jdbc?

1 Answers  


What is session in hibernate?

1 Answers  


Categories