title: JPA Hibernate: How to prevent join on retrieving?
body: <p>Suppose I have the following objects (one table per object) with this relations:
  A -> B -> C -> D</p>
  
  <p>If I findById an instance of A, all B, C and D are returned which is not I want. Is this possible to force Hibernate only to return A (or only it's primitive properties)?</p>
  
  <p>I know that I can write <code>"SELECT a.x, a.y, a.z, ... FROM A"</code> and then manually put the result list of objects in A, but this is somewhat timely as I should manually fill all properties. I have also checked all <a href="http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html_single/#d0e801" rel="nofollow noreferrer">Hibernate query hints</a> but nothing related.</p>
  
  <p>Mohsen</p>