title: Why is hibernate returning a proxy object?
body: <p>I have a service method that calls a DAO which then returns an object from the database. This method is called from numerous parts of the system. However, one particular method is getting a return type of ObjectClass_$$_javassist_somenumber as the type. Which is throwing things off. I call the service method exactly the same as everywhere else, so why would hibernate return the proxy as opposed to the natural object? </p>
  
  <p>I know there are ways to expose the "proxied" object, but I don't feel like I should have to do that. </p>
  
  <p>The query is simply </p>
  
  <pre><code>hibernateTemplate.find("from User u where u.username = ?", username)
  </code></pre>
  
  <p>I am using hibernate 3.3 btw. </p>