[TYPO3-mvc] Enitites and Value Objects (Get into my brain, DDD!)
Matthias Stübner
spam at typo3-consultant.de
Fri May 29 23:51:10 CEST 2009
Am Thu, 28 May 2009 08:39:13 +0200 schrieb Sebastian Gebhard:
> After sleeping a night over it i think that CarType, Category and Brand
> are all Value Objects.
> A CarType is defined by its name, the Category and the Brand. If one of
> those change, it's not the same CarType anymore.
>
> I'd still appreciate if you'd correct me where I'm wrong.
I wouldn't say that I'm right, but I understood it that way, that a value
object consists of just i.e. the name (the value), but nothing else.
Whereas an entity object may have i.e. serveral value objects and a hidden
id.
--
Matthias
More information about the TYPO3-project-typo3v4mvc
mailing list