DDD: where it is most appropriate to get a list of value objects

I have a value type called "Product Type" that is assigned to the product. (The product has one type of product)

So that the user can select the type from the list, I am going to fill in the drop-down list. Where is the most convenient way to retrieve a list of product types? A class that implements a repository template?

Edit: Refined by changing the product code to the product type. The type of product is something like "DVD" / "CD" / "Blu Ray" / etc.

+4
ddd-repositories
source share
1 answer

The product seems to be an aggregated root, so the list of product types should be in the ProductRepository.

+6
source share

All Articles