5: Entities
Caution: Avoid "Entity-Think"...
There is a tendency for developers to focus on data rather than the Domain.
This is often due to prevailing approaches to software development that place importance on the database.
Instead of designing domain concepts with rich behavior, we think about attributes (columns) and associations (foreign keys) of the data.
This often leads to every concept in the Domain Model being coded as an Entity with getter & setter methods.
This is NOT the only behavior DDD entities should have.
Last updated