Patterns, Principles, and Practices of Domain-Driven Design by Scott Millett & Nick Tune

Patterns, Principles, and Practices of Domain-Driven Design by Scott Millett & Nick Tune

Author:Scott Millett & Nick Tune [Millett, Scott & Tune, Nick]
Language: eng
Format: epub
ISBN: 9781118714690
Publisher: Wiley
Published: 2015-04-16T00:00:00+00:00


When to Use a Value Object

Value objects are an entity’s state, describing something about the entity or the things it owns. A ship may have a maximum cargo capacity, a grocery may have a stock level, and a financial report may have quarterly turnovers. Each of these relationships would likely be modeled as an entity-value object relationship. For each example, note how the value object represents a particular concept that has a measurement, magnitude, or value—hence, value object. Two key rationales make value objects an important technical construct in DDD.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.