How does one implement lists such as a list of months in the year, or a list of years in DDD? Where does the logic go, inside value objects, a service, is it part of the domain layer?
+1
A:
IMHO Lists can be Entities, Value Objects and Aggregates as well. It depends on what kind of Lists they are. List of months in year could be Value Objects, when used often in different contexts, maybe the logic should be in services. List of items in the cart (when you don't expect it can grow too big) might be an Entity. List of users in the system with relationships could be implemented as an Aggregate.
Gabriel Ščerbák
2010-03-21 21:58:54