Interface with service layer or domain objects themselves? (DDD)
问题 I'm still learning about DDD and I have these two (probably simple) questions: If a Factory creates new object/graph/aggregate instances, but also "reconstitutes" objects/graphs from the Repository, then: (1) Does your service layer functions/jobs/tasks/unit-of-work call into the Factory or a behavioural method on the Entity instance or a DomainService function? I'm lost as to the call stack based on the responsibility of these components. (2) Do Entity instances even have "behavioural