Hi Peeter,

Peeter Piegaze wrote:
SELECT * FROM X WHERE jcr:primaryType='X'
is mapped to:
//element(*, 'X')[EMAIL PROTECTED]:primaryType = 'X']

and gives you a result table with all declared properties of type X and
nodes that have a declared type X (no nodes of subtypes).

Do you mean: "...and gives you a result table with all declared *and inherited* properties of type X and nodes that have a declared type X (no nodes of subtypes)."?

yes, correct. that's also the way it is implemented in jackrabbit.

whereas:
SELECT * FROM X
is mapped to:
//element(*, 'X')

will return nodes of type X and also nodes of subtypes of X. the result
table contains columns for the properties declared in X.

Do you mean: "...will return nodes of type X and also nodes of subtypes of X. the result table contains columns for the properties declared *and inherited* in X."?

yes, same here.

regards
 marcel

Reply via email to