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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
To: [email protected]
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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> To: [email protected]
> 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
>
>


Reply via email to