jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg <ovarak...@googlemail.com>
Subject Query property constraints - How can I join multiple logical operators in any order?
Date Mon, 16 Nov 2009 09:44:30 GMT

Hello,

What for brackets are allowed in the property constraints to separate
logical operators? I want to build e.g. following query statement:

//*[(@a = 'value1' and @b = 'value2' or @c = 'value3') and (@d = 'value4' or
@e = 'value5')]

Is the syntax with round brackets correct? I known that AND has more
strength than OR and some brackets are needed sometimes for the right query
expression. Right?

Thanks!
Oleg.
-- 
View this message in context: http://n4.nabble.com/Query-property-constraints-How-can-I-join-multiple-logical-operators-in-any-order-tp622036p622036.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message