title: How to refresh hibernate entity when have relationship with other entity
body: <p>I try to refresh my entity using simply hibernate code:</p>
  
  <pre><code>session.refresh(myEntity);
  </code></pre>
  
  <p>Problem is that. This entity has relationship to other entity:</p>
  
  <pre><code>class MyEntity{
  
       private OtherEntity otherEntity:
  
  }
  </code></pre>
  
  <p>When I first time load object I use query like:</p>
  
  <pre><code>Query query = getSession().createQuery("from myEntity mEnt"
          + " join fetch mEnt.otherEntity");
  </code></pre>
  
  <p>All is loaded. But when I refresh object.</p>
  
  <pre><code>session.refresh(myEntity);
  </code></pre>
  
  <p>Relationship entity (otherEntity) is not loaded, is null. I am using LAZY initialization.</p>
  
  <p>Anyone know how to fix it? I will be grateful for help.</p>