原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
49 原书第07章|Introducing the Cargo Shipping System
Cargo is undetermined, but that it must accomplish the goal set out in the Delivery Specification.
A role distinguishes the different parts played by Customers in a shipment. One is the "shipper," one the "receiver," one the "payer," and so on. Because only one Customer can play a given role for a particular Cargo, the association becomes a qualified many-to-one instead of many-to-many.
Role might be implemented as simply a string, or it could be a class if other behavior is needed. C
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch07lev1sec1.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce