title: Playframework [Java] Migration from 2.6.6. to 2.7.0 Problems with JPA?
body: <p>This code worked with play 2.6.6 and Hibernate 4.2.3:</p>
  
  <pre class="lang-java prettyprint-override"><code>int employeeId=1;
  String projectId=123;
  
  int projectSize = jpaApi.withTransaction(entityManager -&gt; {
        TypedQuery&lt;Table&gt; query = entityManager.createQuery("FROM Table WHERE employeeId=:employeeId AND projectId=:projectId", Table.class);
        query.setParameter("employeeId", employeeId);
        query.setParameter("projectId", projectId);
  
        try
        {
          return query.getResultList().size();
        }
        catch (NoResultException e)
        {
          LOGGER.debug("not found");
          return 0;
        }
  });
  </code></pre>
  
  <p>Since I updated to play <strong>2.7.0</strong> and updated the hibernate-dependencies to 5.4.0-Final. This block gives me an exception:</p>
  
  <p><strong>Exception: unable to find models.Table with id 123</strong></p>
  
  <p>Is this a bug? Or what am I doing wrong?</p>