When should we use get() method or load() method in Hibernate?

As a thumb rule we can follow these guidelines:

<li>We should use get() method when we want to load an object.</li>

<li>We should use load() method when we need a reference to an object without running extra SQL queries.</li>
Read the full book at www.amazon.com
Posted in Hibernate, Hibernate Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*