openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MiƂosz Tylenda <mtyle...@o2.pl>
Subject Re: SqlResultSetMapping hierarchy
Date Mon, 08 Jun 2009 14:50:43 GMT
Daryl,

Please have a look at 3.8.14 SQL Queries in JPA spec. It contains a few examples but I am
afraid your intent is not possible as the spec says

"Support for joins is currently limited to single-valued relationships."

at the end of the chapter.

Cheers,
Milosz


> I don't know if everyone missed this, anyone know?
> 
> On Fri, Jun 5, 2009 at 9:42 AM, Daryl Stultz  wrote:
> 
> >
> > I'm not the first to ask this but I didn't find an answer. Is it possible
> > for SqlResultSetMapping / NativeQuery to construct an object hierarchy, for
> > example to return entities A and B where B is a child of A?
> >
> 
> Thanks.
> 
> -- 
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:daryl@6degrees.com
> 

Mime
View raw message