What is first level cache in hibernate?



What is first level cache in hibernate?..

Answer / Mukesh Chandra

"First Level Cache" in Hibernate refers to a cache that stores entity instances loaded from the database within the current Hibernate Session. It's a cache specific to each session and gets flushed (i.e., cleared) when the session is closed or terminated. The First Level Cache improves performance by reducing the need for repeated trips to the database for the same data during the lifetime of a session.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Why hibernate sessionfactory is thread safe?

1 Answers  


What are the five steps of orm?

1 Answers  


What is a polymorphic association?

1 Answers  


Is merge better than update?

1 Answers  


What is dtd in hibernate?

1 Answers  


How to use application server JNDI DataSource with Hibernate framework?

1 Answers  


What is the difference between sorted collection and ordered collection, which one is better?

1 Answers  


What is difference between hibernate session get() and load() method?

1 Answers  


List some of the database support by hibernate?

1 Answers  


Why cascade is used in hibernate?

1 Answers  


Does entitymanager flush commit?

1 Answers  


What is the use of orm in java?

1 Answers  


Categories