jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Complex Queries
Date Fri, 21 Dec 2007 13:21:31 GMT
Dan Diephouse wrote:
> I don't see how it's possible to create an SQL syntax where you test for 
> properties both on the node you're selecting and on it's child though. 
> Can anyone enlighten me?

that's not possible using SQL. JSR 170 does not specify how properties of a 
child node can be used in a predicate. you have to write a XPath statement:

blog[@author = 'Dan Diephouse' or entry/@title = 'Jackrabbit']

regards
  marcel

Mime
View raw message