I have a few (hopefully) simple questions about aggregate roots in domain driven design:
- Is it okay to have an aggregate root as a property of another aggregate root?
- 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!