This pattern is used within the Shareable architectural layer. By “shareable”, we mean that the same instance is available for use by the Inbound/Outbound, Business, and Integration layers.
A PED Domain Entity (DE) represents a physical entity with a unique identity. That is, they are the nouns when designing an object model. These are the objects used for
Scott Ambler offered this elaboration at Ford Motor Company in August of 2011:
“Using a natural key rather than a generated key is a bad, bad, bad, bad, bad practice.”
Agreeing whether a DE should contain encapsulated behavior (beyond accessor methods) is a significant design concern explicitly settled by an application development team when adopting their own Pattern Palette.
|Extend Base Class||Y||1.|
|Static Public Methods (enum)||N|
|Delegate to Helper||N|
- For example, base classes might include a BaseAuditDE and BaseUuidDE.
- Setters may be fluent.
- Avoid passing the same DE instance to multiple worker threads.