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
