Himanshu shriv has Published 52 Articles

Difference Between get() and load() in Hibernate

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 07:19:37

19K+ Views

In hibernate, get() and load() are two methods which is used to fetch data for the given identifier. They both belong to Hibernate session class. Get() method return null, If no row is available in the session cache or the database for the given identifier whereas load() method throws object ... Read More

Difference Between First level cache and Second level cache in Hibernate

Himanshu shriv

Himanshu shriv

Updated on 21-Jan-2020 07:12:08

7K+ Views

Hibernate support two type of cache one is first level cache and other is second level cache. First level cache is a session level cache and it is always associated with session level object. This type of cache is used for minimizing Db interaction by caching the state of the object. That ... Read More

Advertisements