title: Avaje - EBean - Partial Object Query disable Lazy Loading
body: <p>I'm developing an app using Play! Framework 2.1.3, using EBean for the model layer I wanna be able to execute a Partial Object Query and not have the un-selected properties lazy loaded on demand when I serialize to JSON in preparation to send the result back to the user.</p>
  
  <p>I have tried setting AutoFetch to false, I have also tried to end the transaction before serializing to JSON (I ended up getting a Transaction is Inactive error) I've also added the annotation <code>@Lazy(false)</code> on my model class.</p>
  
  <p>On the same note, I also have a One-to-Many association, and I wanna Query the first 3 rows of it, I used <code>new FetchConfig().queryFirst(2)</code> but I guess due to the same lazy loading issue, I end up getting the whole related association rows.</p>
  
  <p>Looking at the manual, I read this (<a href="http://www.avaje.org/ebean/intropartialobjects.html" rel="nofollow" title="EBean Partial Objects">EBean Partial Objects</a>):</p>
  
  <blockquote>
    <p>A Partial Object will lazy load the rest of the data on demand when
    you get or set a property it does not have.</p>
  </blockquote>
  
  <p>Is there a way around this, nothing I tried seemed to work!</p>