title: JPA mapping file
body: <p>Suppose that there are 2 entities:</p>
  
  <pre><code>public class A { 
      int id;
      B b;
  }
  </code></pre>
  
  <p>And</p>
  
  <pre><code>public class B { 
      int id;
      String name;
  }
  </code></pre>
  
  <p>When retrieving an object of type A I want the field b to have only the id populated (so b.name will not be set). Is it possible to specify this in the JPA mapping file (for example in a one-to-one element) ?</p>