title: Understanding Hibernate hibernate.max_fetch_depth and hibernate.default_batch_fetch_size
body: <p>The <a href="http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch03.html">Hibernate documenation</a> gives some of the Hibernate configuration properties. Among them,</p>
  
  <blockquote>
    <p><strong>hibernate.max_fetch_depth</strong></p>
    
    <p>Sets a maximum "depth" for the outer join fetch tree for single-ended
    associations (one-to-one, many-to-one). A 0 disables default outer
    join fetching. e.g. recommended values between 0 and 3</p>
    
    <p><strong>hibernate.default_batch_fetch_size</strong></p>
    
    <p>Sets a default size for Hibernate batch fetching of associations. e.g.
    recommended values 4, 8, 16</p>
  </blockquote>
  
  <p>I am new to Hibernate, can someone please help me in understanding this with an example.</p>
  
  <p>Thanks in advance.</p>