title: Translate SQL Left Join query to EclipseLink JPA query
body: <p>I am trying to write a JPA NamedQuery. I have a working SQL query as follows:</p>
  
  <pre><code>SELECT MIN(t1.Id + 1) AS nextID 
  FROM 
      MyTable t1 LEFT JOIN MyTable t2 
  ON 
      t1.Id + 1 = t2.Id
  WHERE 
      t2.Id IS NULL
  </code></pre>
  
  <p>I am not able to translate this query to JPQL syntax.</p>