Why is sessionfactory immutable?



Why is sessionfactory immutable?..

Answer / Vishal Verma

SessionFactory is declared as immutable in Hibernate because it's expensive to create and caching its instances can improve performance. Once created, it should not be modified.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is @embeddedid?

1 Answers  


Discuss the collections in hibernate?

1 Answers  


How to bind hibernate session factory to jndi?

1 Answers  


What does hibernate show_sql true mean?

1 Answers  


What is orm database?

1 Answers  


Is sessionfactory immutable?

1 Answers  


What is lazy loading hibernate?

1 Answers  


How many types of queries are there in hibernate?

1 Answers  


What is bootstrap in hibernate?

1 Answers  


What are best practices to follow with Hibernate framework?

1 Answers  


What are the orm tools available?

1 Answers  


How to configure hibernate in spring boot?

1 Answers  


Categories