title: Is this valid EJB-QL?
body: <p>I have the following construct in EJB-QL several EJB 2.1 finder methods:</p>
  
  <pre><code>SELECT distinct OBJECT(rd) FROM RequestDetail rd, DetailResponse dr 
        WHERE dr.updateReqResponseParentID is not null 
        and dr.updateReqResponseParentID = ?1 
        and rd.requestDetailID = dr.requestDetailID
        and rd.deleted is null and dr.deleted is null
  </code></pre>
  
  <p>IDEA's EJB-QL inspection flags the use of the two object <code>FROM RequestDetail rd, DetailResponse dr</code> with an inspection which says: <code>Several ranged variable declarations are not supported, use collection member declarations instead (e.g. IN(o.lineItems))</code></p>
  
  <p>The queries themselves function fine (as in return the expected results) on JBoss 4.2. Is IDEA all wet here, or is there a valid issue with the query? And what is the actual preferred alternative syntax for such a query?</p>
  
  <p>Edit: Thanks for the help from all those who answered, especially Romain. I reported this as an <a href="http://youtrack.jetbrains.net/issue/IDEA-54589" rel="nofollow noreferrer">issue</a> to JetBrains.</p>