openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Logemann ...@logemann.org>
Subject searching in double nested list
Date Wed, 06 Aug 2008 13:10:22 GMT
HI,

i know that i can entities in relations like this:

SELECT x FROM Magazine x, IN(x.articles) y WHERE y.authorName = 'John  
Doe'

  But what if i have this objectmodel:

Magazine->Articles->Paragraphs

And now i want to query for paragraph.number = 2 ???

Your example works with a one level nested relation but i have two  
levels.
Thanks for ideas.


--
Marc Logemann
blog http://logemannreloaded.blogspot.com
privat http://www.logemann.org


Mime
View raw message