title: EntityManager.persist problem on load related entity
body: <p>i have a problem with EntityManager.persist (i use tooplink of glassfish).</p>
  
  <p>My code is:</p>
  
  <pre><code>MyEntity e = new MyEntity();
  MyEntityPK ePK = new MyEntityPK();
  ePK.setField1("aaa");
  ePK.setField2("bbb");
  
  e.setMyEntityPK(ePK);
  e.setFiled3(ccc);
  
  entityManager.persist(e);
  
  //HERE NOT PROBLEM
  //If a i want a related entity, i get null
  
  AnotherEntity anotherEntity = e.getAnotherEntity();
  //a is null
  </code></pre>
  
  <p>Why "anotherEntity" is null? After a persist, the object begin attached to PersistenceContext.
  Why the related entity are not loaded if i call getAnotherEntity()</p>
  
  <p>Tanks!</p>
  
  <p>Luigi</p>