New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify distinct usage in API #303
Comments
If the listDistinctResults will be removed how the funtionality of select distinct on specific field with pagination can be accomplished? Today the search result also calculates the total rows number on the distinct field |
listDistinctResults(...) will become distinct().listResults(...) |
Released in 3.0.0.BETA1 |
How Select DISTINCT on specific field can be done in querydsl 4.0.2 ? |
@hamavaro I think you are looking for the GROUP BY clause. |
countDistinct
,iterateDistinct
,listDistinct
andlistDistinctResults
will be deprecated in Querydsl 3.0 and removed at a later time. This is because the same effect can be achieved withdistinct()
+count/iterate/list/listResults
. This usage is more in line with other result modifiers such aslimit
,offset
andorderBy
.As an example the following query
can then be expressed as
The text was updated successfully, but these errors were encountered: