repository (DDD) term
collection-like abstraction for retrieving aggregates by id
An interface that pretends your aggregates live in an in-memory collection. Hides the persistence layer; the domain code asks for OrderRepository.findById(id) without knowing it's a SQL query. One repository per aggregate root. The point is keeping persistence concerns out of the domain model, not the implementation.