title: Hibernate eager loading at runtime
body: <p>I have already implemented java web application (core application) which gives ability to plug modules into the core application. I'm getting <code>org.hibernate.LazyInitializationException
  could not initialize proxy - no Session</code> exception while trying to iterate through the properties of an java object with the help of reflection.</p>
  
  <p>I found that, I can solve this by enabling eager loading with <code>lazy="false"</code> attribute for hibernate mapping file. But I don't want to do that, since hibernate mapping files are inside my core code.</p>
  
  <p>And I tried the solution in <a href="https://stackoverflow.com/questions/14196086/eager-load-the-whole-object-graph-at-runtime-in-hibernate">this</a>, but it didn't help me either. I got the same error.</p>
  
  <p>Is thre any other ways to solve this issue at the runtime ? Appreciate your valuable thoughts.</p>