문제

I have a domain model

  • Customer - Aggregate root - because an order can't exist without a customer
  • Order - entity
  • OrderStatus - value object

In my form I need a list of all OrderStatuses.

Should I fetch an empty customer entity(AR) from repository with an empty order entity which is containing a list of all OrderStatuses? This is awkward.

도움이 되었습니까?

해결책

I asked same thing some time before. read this link.

How value objects are saved and loaded?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top