title: how to obtain an unproxied and EAGER fetched object in Hibernate?
body: <p>I want to load an objet and forget that it comes from hibernate! That's it, I just do something as:</p>
  
  <pre><code>MyClass myObject = MyClassDAO.getUnproxiedObject(objectID);
  </code></pre>
  
  <p>and than I have a real instance of myObj (and not from a Hibernate proxy) with all attributes set with the values from the database, so that I can't distinguish it from a manually created object.</p>
  
  <p>In <a href="https://stackoverflow.com/questions/2216547/converting-hibernate-proxy-to-real-object">this thread</a> a method is present to create an unproxied object, but it does not treats the issue of eager loding the objects, what I suppose is necessary for achieving my ultimate goals.</p>
  
  <p>For those who are wondering why would I want such objects, I need to serialize then to Json with Gson, but I think it would have many other uses for many people.</p>