I have two Aggregate root, Publisher and Campaign:
- 1 campaign can have multiple publisher registered,
- 1 publisher can have assigned to multiple campaign.
that means MToM relationship
so in Publisher class, i created
List<Campaign> _campaigns;
and in Campaign class
List<Publisher> _publishers;
I have created table with columns (id, publisherID,CampaignID)
But i have heard that MtoM should be avoided, how can i do that ? Do above depiction is correct ?