I'm new to DDD and trying hard to understand some of the concepts. How do you determine in your domain what objects are Entity objects and which ones are Value objects, and how exactly are they treated differently?
+1
A:
As I see it domain objects basically represent nouns of your business domain and do have an identity, whereas value objects do not carry any special meaning to the business (think MonetaryAmount) and do not have an identity.
Anton Gogolev
2009-01-29 17:40:20
I think that entity == "thingy that as a noun" is a really naive way to model your domain.Value objects can have a very special meaning to the business. MonetaryAmount could mean something very special if you do currency exchange and yet it would still be a value object.
Simon Laroche
2009-02-05 22:45:07