13 Aug 00:47
Getting references to internal entities from outside aggregate boundary
From: nichols_mike_s <nichols_mike_s <at> yahoo.com>
Subject: Getting references to internal entities from outside aggregate boundary
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-12 22:49:17 GMT
Subject: Getting references to internal entities from outside aggregate boundary
Newsgroups: gmane.comp.programming.domain-driven-design
Date: 2008-08-12 22:49:17 GMT
I have an entity 'Calibration' which is a variant entity under the Aggregate 'MixDesign'. MixDesigns create calibrations and calibrations are only valid as they represent a valuation based on mix design properties. There is no such thing as a calibration without a mix design. I have other objects outside the mix design aggregate boundary which need to know which calibration is being used for their calculation, but DDD dictates that no references to inner variants are held. I have considered moving Calibration to be its own aggregate but this is awkward since a calibration really only exists as a valuation from a mix design. How have other people here dealt with this kind of pseudo-aggregate reference problem? I really don't want to implement a service to deal with associations in the domain for something as simple as object references. Should I reference the calibration by some kind of business key like the Creation date (which is unique) or something? thanks, mike ------------------------------------
RSS Feed