jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Reply: Does mixin effect search result?
Date Mon, 16 Jun 2008 09:30:16 GMT
On Mon, Jun 16, 2008 at 11:16 AM, Yonder <zyzha@yahoo.com.cn> wrote:
>> there's something else that is strange. ocm:file2 is defined as a mixin, but is
>> later used in the code as a primary type to create a node. shouldn't that be
>> prevented?
>
> It's no my invention. I'm using Jackrabbit OCM, its query implementation always element()
for type constrain whether the node type is mixin or not:

No, he means this line in your code:

Node file2 = root.addNode("second", "ocm:file2");

The second parameter should be a primary type, not a mixin.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message