Consider the following example (borrowed from DDD). It is to my belief that repositories are part of the domain, and thus Domain Objects may depend on...
Hi William, the advice you give is exactly the reason, why we (this group) should come up with short article on what DDD is. I personally don't feel qualified...
Hi, I wonder if there are any tools that support DDD? If not, how could tool support for DDD look like? I am not a DDD domain expert. What are the most ...
A can certainly hold a reference to B; but I was thinking about the original context of this thread -- that A and B were independent aggregates. Or perhaps...
I would normally create one repository for each domain object, to deal with persistence . Which in turn just a set of interface. Using interface or abstract...
I'm thinking that this is a generic subdomain. Really the core domain is about Event Registration and managing the people invited to the event. I think...
... Well, Michael, I think there are things that even the most partisan person could successfully do without writing a puff piece. The first step is to gather...
I normally do NOT create one repository per domain object. For instance, OrderLine is a persistent domain object which would not have a repository. It would be...
You're correct I got it wrong there, it should read for each aggregate. Since we use XSD to define our domain object as an XML element , all the children...
Hi,Randy, I am a newbie on DDD. Even I can tell the difference between the Domain Service and Service Layer, I can not help myself to put many business logics...
I think you should question the value of the having the Account to Member relationship. Maybe you should reverse the relationship and make each Member...
Hi, There, In Eric's book, he said about the application layer: This layer is kept thin. It does not contain business rules or knowledge, but only coordinates...
There were a couple of interesting statements made in this thread. I'll just quote one: This is how I see it. A car does not rotate its wheels by itself. It ...
... objects with behavior. The behavior does not have to replicate the real world behavior ... object often does. In the real world, a car can't rotate it's...
I'm no expert but here's my take on it. I would let the repository find me a valid Score object. If the repository found there was no score object coming back...
hi, Simser, Thanks for your reply. Actually, I lean not to put the score loading business rules into the Entity , or into the repository. My consideration is...
There are no hard-and-fast rules; no one-size-fits-all prescription. "Business rules" is such a vague term. And there is context-dependency. In general, an...
My take on the service layer is that it is not part of the domain, whereas the repository is. So putting it into the repository would be my choice of location...
I agree with Bil's opinion, and it is exactly what I do in my applications. The repositories are responsibile for the workflow. And, I'm not a fan of ...
Bill, In my opinion, the repository interface is part of the domain, not the implementation. If you make the repository implementation part of the domain, you...
hi, Colin, I incline to your approachs because I want to keep the repository reusable even if we change our score loading policy. However, since the scoreing...
In the book Streamlined Object Modeling, there is coverage on which objects direct the work in a collaboration. For example (p. 102), a VideoTitle reserves a...
Hi, see below ... I don't really understand why you say that you loose flexiblity by putting the data access logic inside the domain. In fact, ACCESSING the ...
Trying to weigh the pros and cons of using simple datatables for getting a read-only list to the client. Say I have a remoted service that deals with customer...
I agree with you. Perhaps I should have said DDD infrastructure of decor (factories, repositories, specifications, etc.). Nonetheless, we ultimately have to...
Hi Sami, ... I don't think we're on the same page here. What I was trying to say was that repository implementations are outside the domain, and therefore any...
Chris G., In a sense, maybe you've already answered your question. If you need to optimize by pushing the work off to a database (querying for an un-reserved...
+1 VideoTitle.reserve() defines a"rich"intention-revealing interface. The implementation, which collaborates with a repository, seems perfectly normal (to me)....
I work with Microsoft technologies, and with the upcoming release of their new workflow product, there's a lot of buzz about "workflow" in the Microsoft...