Miłosz Tylenda on 25/07/09 18:06, wrote:
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[]."
Haha! So that's why I didn't find it. Wrong section and wrong search string. I
normally read the paragraphs that have the most relevant headings in the
contents list and then search for other stuff on keywords. My tried and trusty
RTFM method is obviously lacking.