Tuesday, October 28, 2014

An Entity Can Become a Value Object

In properly designed domain models, an entity in one bounded context can become a value object in another bounded context. For example, in a billing system, "Customer" and "Biller" are not entities but value objects. They are read-only classes, and their information is maintained in other bounded contexts. Only a subset of their information is needed in the billing system, usually just the logical ID and a descriptive name.

No comments:

Post a Comment