Results 1 to 2 of 2

Thread: Referencing Aggregate Roots in DDD

Threaded View

  1. #1
    Join Date
    Jun 2009
    Location
    UK
    Posts
    16

    Default Referencing Aggregate Roots in DDD

    I have a question of how i can reference Aggregate Roots from other objects when using a domain driven design. Here is my problem

    I do not want to directly reference other Aggregate Roots from my Objects (Aggregates) as this would mean (1) I would eventually load a whole network of objects when loading one Aggregate Root (2) I would create dependencies between the Repositories

    I thought of using Proxies instead - however this does not seem to be a good idea as well as when using a proxy ideally i would be able to resolve the "real" Aggregate Root transparently - but this will require the object to use the service layer (where all the repositories are used and the transactions are maintained) - so I'll create a sependency on the service layer in the Business Objects which I don't really want as well.

    So to make this question short - how are you referencing Aggregate roots from your objects without creating a whole network of objects and still having a clean separation of the Service Layer and the Business Objects?

    Thanks in advance for your comments/suggestions/ideas
    Walter
    Last edited by wdorninger; Aug 7th, 2010 at 03:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •