jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Querying the jcr:primaryType property [2]
Date Wed, 13 Apr 2005 13:26:23 GMT
Hi Peeter,

Peeter Piegaze wrote:
>>SELECT * FROM X WHERE jcr:primaryType='X'
>>is mapped to:
>>//element(*, 'X')[@jcr: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

Mime
View raw message