From dev-return-16624-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Feb 05 18:27:20 2008 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 81839 invoked from network); 5 Feb 2008 18:27:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 18:27:19 -0000 Received: (qmail 54345 invoked by uid 500); 5 Feb 2008 18:27:11 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 54311 invoked by uid 500); 5 Feb 2008 18:27:11 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 54302 invoked by uid 99); 5 Feb 2008 18:27:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 10:27:10 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.189.200.4] (HELO mail.soft-industry.com) (195.189.200.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 18:26:39 +0000 Received: from [192.168.0.11] (al.neocom.net.ua [194.9.14.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.soft-industry.com (Postfix) with ESMTP id E0F47F5784 for ; Tue, 5 Feb 2008 20:27:06 +0200 (EET) From: Alex Lukin Organization: ChSTU To: dev@jackrabbit.apache.org Subject: Re: Content Object Mapping - jcrom.org Date: Tue, 5 Feb 2008 20:26:14 +0200 User-Agent: KMail/1.9.6 (enterprise 0.20071204.744707) References: <1b0d43d00802050348p2e1d54dau427f0055a321fa0@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802052026.14179.lukin@stu.cn.ua> X-Virus-Checked: Checked by ClamAV on apache.org Tuesday 05 February 2008 19:24:16 Alexandru Popescu =E2=98=80 =D0=BD=D0=B0= =D0=BF=D0=B8=D1=81=D0=B0=D0=B2: > Oops... it looks like I've left something unfinished... > > On Feb 5, 2008 7:21 PM, Alexandru Popescu =E2=98=80 > > wrote: > > (to Alex Lukin): > > > 2) JPA is based on relational approach and does not work properly with > > > tree-like structures we use often with JCR > > > > That's partly correct. Indeed the theory of relational storage and > > tree-based storage are radically different. > > However, I do believe that part of the JPA annotations and moreover > API can be applied to any Object to X mapping solutions. And as I > said: it doesn't need to be 100% pure JPA ;-). Well, may be. But JPA is not ideal solution for java persistance. It does n= ot handle right things like this: class MyNode { List subNodes; .... } The nature of JCR is tree. The naure of tree processing is recursion.=20 JPA does not have any word about it. It has a lot of words about relational= stuff instead. So use of JPA with JCR may be very misleading. =2D-=20 SY, Alex Lukin RIPE NIC HDL: LEXA1-RIPE