jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng Zhang <zhangyongji...@yahoo.com>
Subject Re: need feedback to store xml tree structure with jackrabbit
Date Fri, 16 Jan 2009 15:13:56 GMT
thanks, Jukka.



----- Original Message ----
From: Jukka Zitting <jukka.zitting@gmail.com>
To: users@jackrabbit.apache.org
Sent: Friday, January 16, 2009 2:11:02 AM
Subject: Re: need feedback to store xml tree structure with jackrabbit

Hi,

On Thu, Jan 15, 2009 at 11:57 PM, Cheng Zhang <zhangyongjiang@yahoo.com> wrote:
> Do you guys see any problem here?

Looks pretty good to me.

You probably won't need the ASIN property on the Review node, as that
can be looked up from the parent.

You may want to look at using for example the summary field and
perhaps the date as the starting point for generating unique names to
the review nodes. This allows you to avoid the same-name-siblings
feature, which is often a bit troublesome to handle in practice.

A good rule of thumb for converting XML models to JCR is to remember
that nodes in JCR are much heavier than elements in XML, so you'll
want to map any "data elements" (ones that contain no internal XML
structure) to JCR properties. It looks like you're already doing this
well.

BR,

Jukka Zitting


Mime
View raw message