← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

131 原书第16章|Knowledge Level

核验版本的摘录快照 · 导入于 2026-11-14T03:12:56.412Z

proposed model, now underconstrained Figure 16.18. Employees can be associated with the wrong plan.

This model allows each employee to be associated with either kind of retirement plan, so each office administrator can be switched. This model is rejected by management because it does not reflect company policy. Some administrators could be switched and others not. Or the janitor could be switched. Management wants a model that enforces the policy: Office administrators are hourly employees with defined-benefit retirement plans. This policy suggests that the "job title" field now represents an important domain concept. Developers could refactor to make that concept explicit as an "Employee Type.

" Figure 16.19. The Type object allows requirements to be met. Figure 16.20. Each Employee Type is a

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch16lev1sec4.html

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce