hibernate - How do I use DISTINCT ON in queryDSL with booleanBuilder parameter? -
in spring data jpa have created filtered search booleanbuilder
. queries in project either @query
or querydsl
. i'm having hard time formulating query when i'm faced distinct on
, dynamic filters. i'm having hard time constructing equivalent of in querydsl.
select distinct on (name) * foo_table <my filtered booleanbuilder> order name, version_number desc;
is possible? alternative or appreciated. thanks!
distinct on
postgresql vendor-specific sql clause. cannot use jpa (except native queries). use sql directly.
Comments
Post a Comment