Hello,
I just try things with CQRS but now it is getting more serious and I want to have it proper and clean. But I can't handle the DomainModel and CQRS:
This is the DomainModel for the "incoming editable" data:
- Person
- getName
- getDescription
- getCars
- Cars (maybe ValueObject)
- Bodywork
- Engine
- Seats
- Wheels
Simple as that. But there is more in the domain. Some Documents that is generated out of that data (only the classes are listed here):
- Documents
- SimpleOffer
- FleetOffer
- DetailledOffer
- Advantages
- Cost
- Packages
- Financing
- Terms
There are some more documents and they divide from the above a bit. Each section will have a topic and text.
QUESTION: Do I create a class for each document and all it's segment?
In DDD/CQRS terms this should be done I guess. But instead I could have some abstract document and sections to model everything. This is quick but dirty I guess. Could you give me a hint how and what should be done here?
Furthermore the CQRS part will be that one data set comes in (first part) and it generates one of the documents (second part, e.g. DetailledOffer).