A series of simple Aggregate Root questions (Domain Driven Design)

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-05-17T09:49:35Z Indexed on 2010/05/20 5:10 UTC
Read the original article Hit count: 258

Filed under:
|
|

I have a few (hopefully) simple questions about aggregate roots in domain driven design:

  1. Is it okay to have an aggregate root as a property of another aggregate root?
  2. Is it okay to have a given entity inside two or more aggregate roots?

My final question is a bit more involved. I have a website that has a few entities that really belong to a "website" aggregate root. They are 'News', 'Products', and 'Users'. There isn't a 'Website' table in the database, but a 'Website' seems like a good aggregate root for these three entities. How is this usually achieved?

Thanks!

© Stack Overflow or respective owner

Related posts about aggregate

Related posts about root