jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Johnson ...@proteanit.net>
Subject Re: Node unfound, Node unsaved
Date Mon, 31 Mar 2008 12:50:11 GMT
Thanks Dave - i shall study that immediately. In the meantime, could you 
   or anyone else account for why my code doesn't perform as expected?

CJ

Dave Brosius wrote:
> Charles,
> 
>    Take a look at Node Type Definitions. I think this is really what you 
> want, NTDs are kind of like xml schemas, so you get the 'type safety' of 
> knowing that a child of 'reviews' is really a thing you know of as being 
> a review. But with the benefit of having it's own name.
> 
> See
> 
> http://jackrabbit.apache.org/node-types.html
> 
> 
> cheers,
> dave
> 
> ----- Original Message ----- From: "Charles Johnson" <cj@proteanit.net>
> To: <users@jackrabbit.apache.org>
> Sent: Monday, March 31, 2008 7:11 AM
> Subject: Re: Node unfound, Node unsaved
> 
> 
>> Thanks Greg, i'll have a look at that. I don't know if things should be
>> different with JCR, but i was just proceeding on the standard xml:
>>
>> <reviews>
>>    <review isbn="xxxx">bar</review>
>>    <review isbn="yyyy">foo</review>
>> </reviews>
>>
>> CJ
>>
>> Greg Klebus wrote:
>>> Hi Charles
>>>
>>> Just a short comment on your content model:
>>>
>>> On Sun, Mar 30, 2008 at 9:17 PM, Charles Johnson <cj@proteanit.net> 
>>> wrote:
>>>
>>>>  There seem to be problems with the most fundamental functionality. I'm
>>>>  trying to create a single Node, /reviews, which I'll later use as the
>>>>  root for /reviews/review[0..n]
>>>>
>>>
>>> Is there a reason for using same-name-siblings here? I think something
>>> like that would be much easier to handle, and much more
>>> self-explanatory:
>>>
>>> /reviews/review-iphone
>>> /reviews/review-ipodnano
>>>
>>> or sth similar (depending on what's review subject).
>>>
>>> Have you seen David's Model, esp Rule #4: Beware of Same Name Siblings
>>> [1]? You might disagree, but should at least consider the consequences
>>> of using SNSs.
>>>
>>> [1] 
>>> http://wiki.apache.org/jackrabbit/DavidsModel#head-1df0224190c265f5156f037eb3f20e314fa6c4a7

>>>
>>>
>>> Cheers
>>> Greg
>>>
>>> PS. Sorry if that's a well thought-through decision already :)
>>>
>>>
>>
>>
> 
> 

Mime
View raw message