title: EntityManager find() hangs
body: <p>I'm having a problem where <code>entityManager.find()</code> hangs with no error message.  Yet, when I use <code>entityManager.createQuery()</code> it successfully returns.  What is different about <code>.find()</code> that is causing it to hang?</p>
  <p>For example,</p>
  <pre><code>// this hangs
  MyObject mo = entityManager.find(MyObject.class, id);
  
  //this works
  Query query = entityManager.createQuery(&quot;select o from MyObject o where o.id = :id&quot;)
  query.setParameter(&quot;id&quot;,id);
  MyObject mo = query.getSingleResult();
  </code></pre>