What is 2nd level cache in hibernate?
Answer / Reeta Joshi
"The 2nd level cache in Hibernate is a session-independent cache. It stores data fetched from the database, which can be shared across multiple sessions and even multiple threads. This cache helps in reducing the number of queries to the database for the same data by reusing previously loaded objects."
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you switch between relational databases without code changes?
What will happen if we don’t have no-args constructor in entity bean?
Why do we need mapping?
Is a mapping in hibernate?
How to bind hibernate session factory to jndi?
What the four ORM levels are in hibernate?
What is cascade type?
What is difference between save and persist method in hibernate?
What is hbm2ddl in hibernate?
What are the different id generating strategies using @generatedvalue annotation?
Can you declare mappings for multiple classes in one mapping file?
What are the advantages of using hibernate over jdbc?