> Daryl Stultz on 24/07/09 13:45, wrote:
> > Adam's original question is about portability of the Object[] return type,
> > yes?  Will this query:
> > 
> > select distinct o.periodEnd, o.portfolioItem.portfolio
> > from Order o
> > order by o.periodEnd asc, o.portfolioItem.portfolio.title
> > 
> > return a List of Object[] in all JPA implementations or just OpenJPA?
> 
> That is my original question, yes. Anyone care to comment?

Yes. All JPA implementations should return a List of Object[] for that query. 
What they say in JPA 1 spec:

"The elements of the result of a Java Persistence query whose SELECT clause 
consists of more than one
select expression are of type Object[]."

Cheers,
Milosz

Reply via email to