What is a Model in DDD?

VietMX Staff asked 3 years ago

model is a useful approximation to the problem at hand.

An Employee class is not a real employee. It models a real employee. We know that the model does not capture everything about real employees, and that’s not the point of it. It’s only meant to capture what we are interested in for the current context.

Different domains may be interested in different ways to model the same thing. For example, the salary department and the human resources department may model employees in different ways.