title: Understanding @BatchSize in Hibernate
body: <p>The <a href="http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch05.html" rel="noreferrer">Hibernate documentation</a> gives some information at @BatchSize as :</p>
  
  <blockquote>
    <p>@BatchSize specifies a "batch size" for fetching instances of this
    class by identifier. Not yet loaded instances are loaded batch-size at
    a time (default 1).</p>
  </blockquote>
  
  <p>I am not clear on what is the purpose of this annotation, when we need to use this. Can some please help me in understanding when to use this annotation.</p>