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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -