title: SELECT distinct field in Querydsl
body: <p>I would like to ask about how to make a <code>SELECT Distinct on field</code> in Querydsl 4. What is the best way to do this SQL request:</p>
  
  <pre><code>SELECT DISTINCT ON 
      (company_id, EXTRACT(MONTH FROM createddt), EXTRACT(YEAR FROM createddt)) id, 
      createddt 
  FROM companystats 
  ORDER BY company_id, 
      EXTRACT(MONTH FROM createddt) DESC,
      EXTRACT(YEAR FROM createddt) DESC,
      createddt DESC
  </code></pre>
  
  <p>Thanks.</p>