vw729 ,
If I understand them correctly, Projections are a way to perform multiple aggregate calculations on the same resultset.
But in the case you describe, why use projections at all?
What's wrong with a
Code:
select distinct ebi.id, ebi.name, ebi.description from EntryBriefInfo ebi
?
Incidentally, your error stack trace shows a JSP (JSTL) errror, which occurs when the variables expected are arrays instead of primitive values.
I believe that your query is not returning EntryBriefInfo beans as you expect, but some sort of Object[] array containing separate EntryBriefInfo properties.
You have 2 options:
1) cast those individual properties and feed them to the JSP in a different fashion
2) or modify your query in such a way that it returns EntryBriefInfo beans as expected. Notice that this second option is only possible if you have a one-element select list, as in
Code:
select ebi from EntryBriefInfo ebi ...
or directly
Code:
from EntryBriefInfo ebi
However, since you want to perform some sort of distinct on some of the members of the class, probably you want to go with option 1).