I need to use the HQL constructor constructor , for example:
select new SomeClass(i.Id, i.Name) from Item i...
But I also have to use the keyword , as there is another connection in the request, for example: distinct
select distinct i.Id from Item i
I tried this: but it just throws an Antlr exception, so I assume its invalid syntax is:
select new SomeClass(distinct i.Id, i.Name) from Item i
Is it possible?
source
share