← 返回卡片

原书出处

Domain-Driven Design Tackling Complexity in the Heart of Software

70 原书第09章|How to Model Less Obvious Kinds of Concepts

核验版本的摘录快照 · 导入于 2026-10-25T11:55:24.003Z

). The REPOSITORY now has a very specialized query that most likely will be used only in this case.

That is acceptable, but depending on the relative numbers of Invoices that are overdue compared to those that are delinquent, an intermediate solution that leaves the REPOSITORY methods more generic may still give good performance, while keeping the SPECIFICATION more self-explanatory.

public class InvoiceRepository { public Set selectWhereDueDateIsBefore(Date aDate) { String sql = w

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

原书定位详情

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

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

EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce