Model complex business domains with entities, value objects, and bounded contexts.
| Entity vs VO | Has unique ID + lifecycle? Entity. Otherwise VO | | Entity equality | By ID, not attributes | | Value object mutability | Always immutable (frozen=True) | | Repository scope | One per aggregate root | | Domain events | Collect in entity, publish after persist | | Context boundaries | By business capability, not technical |
entities Keywords: entity, identity, lifecycle, mutable, domain object Solves: Model entities in Python, identity equality, adding behavior
Modelli tattici di progettazione basata sul dominio per domini aziendali complessi. Da utilizzare durante la modellazione di entità, oggetti valore, servizi di dominio, repository o la definizione di contesti delimitati. Fonte: yonatangross/orchestkit.