El escenario
A wholesale computer hardware distributor needs a class model that tracks products, suppliers, purchase orders, customers, sales orders, and warehouse inventory.
Qué hay en este dibujo
Lee las decisiones que hay detrás.
01
Use composition for order-to-line relationships because line items cannot exist without their parent order.
02
Separate Product catalog entries from InventoryItem physical stock to support serialized hardware tracking.
03
Keep Supplier and Customer as independent aggregate roots linked to their respective purchase and sales orders.
Use when designing sales and inventory systems for hardware distributors, computer resellers, or electronics wholesalers.