title: QueryDSL - add subquery into FROM statement using JPA
body: <p>Would you please help me to create QueryDSL construct for SQL like below using JPA Query. I am using 4.1.3.</p>
  
  <pre><code>SELECT * FROM (SELECT a FROM b WHERE a.z = 1) WHERE rownum &lt;=1;
  </code></pre>
  
  <p>The Solutions mentioned is not working for me <a href="https://stackoverflow.com/questions/15020049/querydsl-add-subquery-into-from-statement">QueryDSL - add subquery into FROM statement</a></p>
  
  <p>Thanks in advance.</p>