Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 27772 invoked from network); 24 May 2007 19:53:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 19:53:59 -0000 Received: (qmail 64850 invoked by uid 500); 24 May 2007 19:54:04 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 64594 invoked by uid 500); 24 May 2007 19:54:03 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 64585 invoked by uid 99); 24 May 2007 19:54:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 12:54:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ali.sakebi@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 12:53:58 -0700 Received: by ug-out-1314.google.com with SMTP id u2so121472uge for ; Thu, 24 May 2007 12:53:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L+OGO8QtYQB+9Jd+xVXYAco/SCiYxrNxqIa6zzssnnHPfg+Jo2to2daqu6RSQTatZElRlk8XGoE7ZpOL0w+Oh2FUzqRkr47AeUCgVpAson09AJZmNZokxYtYykspOuiLWB5LmEey5RQ9iJDITezhC3n3YL3kkpcZUkVB7nUDvEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ADllDTW8RqzfpIngfA/vyArAtHJaxyU5NskCXun0hwETT/z5ukvRLxRTXpQq27rIouEKBKltEW1jmYWBXJ8EnvILJuSroIBwJtB/uUm9J7dinwzI+laRoZpRsg4upOurzD5uAk914ybyOSVl1P99SQn/T1Aq5pThc//a1FNA9HU= Received: by 10.82.176.3 with SMTP id y3mr3961309bue.1180036416284; Thu, 24 May 2007 12:53:36 -0700 (PDT) Received: by 10.82.150.2 with HTTP; Thu, 24 May 2007 12:53:36 -0700 (PDT) Message-ID: <45a32bf00705241253n6fbc79aaq65f42fd8cd0fccdb@mail.gmail.com> Date: Thu, 24 May 2007 23:23:36 +0330 From: "Ali Sakebi" To: users@jackrabbit.apache.org Subject: Re: JCR and Domain Model or Business Logic? In-Reply-To: <20078027.8641180036203265.JavaMail.root@mail.rhoderunner.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45a32bf00705241145u3ca7373ehf26ff5ef82d6800c@mail.gmail.com> <20078027.8641180036203265.JavaMail.root@mail.rhoderunner.com> X-Virus-Checked: Checked by ClamAV on apache.org I have just found this page: http://incubator.apache.org/graffito/jcr-mapping/index.html It seems that they have-solved/are-solving this issue in the same way as ORM frameworks. Interesting if it really works. On 5/24/07, Phillip Rhodes wrote: > I don't know if I have the best design, but I use separate persistance mechanisms for my objects. > > For JCR objects, I use one spring service, for my hibernate objects, I use another spring service. > > My hibernate objects maintain a string property of the path to the Node (e.g. the product image) > > > > ----- Original Message ----- > From: "Ali Sakebi" > To: users@jackrabbit.apache.org > Sent: Thursday, May 24, 2007 2:45:21 PM (GMT-0500) America/New_York > Subject: Re: JCR and Domain Model or Business Logic? > > So u use jcr object as data object, and wrap them or textual reference > to them with business logic objects? > > How do u manage lifecycle (loading, CRUD) of ur objects graph/tree? > Is ur jcr persistence transparent to ur domain model? > > What about other patterns, is it common to implement business logic > using transactional script pattern and use jcr objects as data > objects? > > On 5/24/07, Phillip Rhodes wrote: > > What I do is store the path of the node in my domain layer. > > > > For example, a Product object, you could a string property to hold the path to the node in jackrabbit that stores the image. > > > > > > > > ----- Original Message ----- > > From: "Ali Sakebi" > > To: users@jackrabbit.apache.org > > Sent: Wednesday, May 23, 2007 11:59:37 PM (GMT-0500) America/New_York > > Subject: JCR and Domain Model or Business Logic? > > > > Hi > > > > I want to use JCR as data storage back-end in my web app but I still > > need to expose the domain layer to front end UI. Can some one please > > guide me how can I do this, how can mix them together? Is there any > > design pattern available? > > Is it possible to add business logic to nodes or should I use wrappers? > > Should I inject JCR objects into domain model and vice versa? > > Is it the same issue as OR impedance mismatch? > > > > And how can I do node-based updates/commits instead of session commit? > > > > Regards, > > Ali > > > > > >