Luis Fernando Planella Gonzalez on 22/07/09 13:05, wrote:
You might find easier to use
select new com.mypackage.MyBean(o.periodEnd, o.portfolioItem.portfolio)
from ...

This way you handle a class of your own with getters of the correct type, not 
an Object[].

Wouldn't you have to map it? I was thinking of trying to do it with the least overhead.

Ideally I wanted the results in a Map, with the first column as the key, but I figured I'd probably not see that until JPA 3.1 :)

Reply via email to