jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Scheidegger <willscheideg...@mac.com>
Subject Re: select all nodes not having certain subnodes?
Date Thu, 19 Aug 2010 13:15:57 GMT
Thanks. Since I'm on Jackrabbit 1.6 SQL2 is not an option. I guess I'll have to do it programmatically
although this is far less efficient. But thanks for the confirmation that it's not possible.
At least I know now that I'm not doing anything wrong...

-will

On 19.08.2010, at 15:09, Alexander Klimetschek wrote:
>> but afaik
>> - the count() function is not implemented by Jackrabbit
>> - XPaht does not allow "subqueries" like this
> 
> Yes, I think you won't be able to do such a query with JCR Xpath. It
> might be possible with JCR 2.0 SQL2's join feature. Otherwise you have
> to do that join yourself by doing multiple queries, ie. find all rooms
> first and take out all that have a reservation for the given time
> span.
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com


Mime
View raw message