Hello,
I am very new to DDD. My SQL table contains a list of styles, every style has colors and sizes. Now, I am working on an application, where the user will see three dropdownlists, one for style, one for the color and one for the size. Now initially these dropdownlists are loaded with the distinct values. The user is then able to select a style and the system will then able to find all colors/sizes for that selected style. The user can do the same with the color and it will load the styles that match the selected color and the sizes. You get the idea.
These are my basic requirements. Now I was thinking to create a repository for the styles (StyleRepository) and have it load all styles, and when required load the child colors, and child sizes.
However as described in my app, I will also need to load the distinct colors or sizes. Now is it recommended to create three repositories instead StyleRepository, ColorRepository, SizeRepository or would I create a totally different Repository?
As said I am fairly new to this and would appreciate your suggestions.
Thank you