A client needs a practical means of acquiring references to preexisting domain objects. If the infrastructure makes it easy to do so, the developers of the client may add more traversable associations, muddling the model. On the other hand, they may use queries to pull the exact data they need from the database, or to pull a few specific objects rather than navigating from AGGREGATE roots. Domain logic moves into queries and client code, and the ENTITIES and VALUE OBJECTS become mere data containers. The sheer technical complexity of applying most database access infrastructure quickly swamps the client code, which leads developers to dumb down the domain layer, which makes the model irrele...
- Six. The Life Cycle of a Domain Object
- from Domain-Driven Design: Tackling Complexity in the Heart of Software
- Publisher: Addison-Wesley Professional
- Released: August 2003
Don't do this
Share this highlighthttp://www.safaribooksonline.com/a/domain-driven-design-tackling/330249/