Session object hold First Level Cache - Hibernate

Q.  What does the Session object hold?
- Published on 16 Jul 15

a. First Level Cache
b. Second Level Cache
c. Both A & B
d. None of the above

ANSWER: First Level Cache
 

    Discussion

  • Prajakta Pandit   -Posted on 14 Dec 15

    - Hibernate caching improves the performance of the application by pooling the object in the cache.

    - It consists of two types of caching:
    1. First level cache
    2. Second level cache

    - Session object holds the first level cache data.

    - This cache is enabled by default.

    - The data in the first level cache will not be available to the entire application. An application can use many session object.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)