openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: resultsets with Object[] lists
Date Fri, 24 Jul 2009 12:45:14 GMT
On Wed, Jul 22, 2009 at 8:05 AM, Luis Fernando Planella Gonzalez <
lfpg.dev@gmail.com> wrote:

> You might find easier to use
>
> select new com.mypackage.MyBean(o.periodEnd, o.portfolioItem.portfolio)
> from ...
>

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?

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:daryl@6degrees.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message