hibernate1

load() and get() methods of Hibernate Session

Hibernate Session provides two methods to access the object (session.get() & session.load()). Both looks like same but there are differences between load () and get () methods. Let’s have a look at those. load(): load() method throws hibernate.ObjectNotFoundException (which is Un-checked exception) if object not found in cache as well as in database. load() method […]