title: how to override hibernate fetching strategy at runtime
body: <p>i saw following statement in book "hibernate in action". anyone can tell me how to override strategy at runtime. and can you do opposite way that is i have fetching strategy set lazy as false and i want to set it true?</p>
  
  <p>“Lazy fetching lets you decide how much of the object graph is loaded in the first
  database hit and which associations should be loaded only when they’re first
  accessed. Lazy fetching is a foundational concept in object persistence and the
  first step to attaining acceptable performance.
  We recommend that, to start with, all associations be configured for lazy (or perhaps
  batched lazy) fetching in the mapping file. <strong>This strategy may then be overridden
  at runtime by queries that force eager fetching to occur</strong>.”</p>