title: How to do 'select count(distinct column) from table' with jpa query method?
body: <p>Is there a way to do <code>select count(distinct column1) from table</code> with jpa query method not with query annotation?</p>
  <p>I know I can do <code>select count(distinct column1) from table where column2 = :column2</code> by <code>long countDistinctColumn1ByColumn2(:column2)</code>.</p>
  <p>I've searched official documents and tried some tests but couldn't find a way, thanks in advance.</p>