SessionFactory has elements of Hibernate architecture - Hibernate

Q.  In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider, It holds the second level cache (optional) of data is _____.
- Published on 15 Jul 15

a. Session
b. SessionFactory
c. Transaction
d. ConnectionProvider

ANSWER: SessionFactory
 

    Discussion

  • Prajakta Pandit   -Posted on 14 Dec 15

    - In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider, it holds the second level cache (optional) of data is SessionFactory.

    - SessionFactory holds the second level cache of data.

    - It is created during the application start up and kept for later use because the SessionFactory is a heavyweight 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.)