EclipseLink JPA: fetch group cannot be set on report query
<p>EclipseLink: fetch group cannot be set on report query.</p>

<pre><code>    TypedQuery&lt;Q&gt; query = em.createQuery(criteriaQuery);
    query.setHint("javax.persistence.fetchgraph", entityGraph); 
    List results = query.getResultList();
</code></pre>

<p>What is report query?</p>

<p><a href="https://docs.oracle.com/cd/B25221_04/web.1013/b13593/errcode006.htm" rel="nofollow">https://docs.oracle.com/cd/B25221_04/web.1013/b13593/errcode006.htm</a></p>

<pre><code>6112: FETCH_GROUP_NOT_SUPPORT_ON_REPORT_QUERY
Cause: Fetch group cannot be set on report query.
Action: Remove the fetch group setting on ReportQuery, or use ReadObjectQuery or ReadObjectQuery instead.
</code></pre>

<p>Thanks.</p>