Re: Re: entities Vs value object
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
Entity objects are those which has meaningful identity in domain. Value Objects are those which does not have meaningful identity in domain but coexists with Entity object. For example, in student domain, Student is an entity while student Address is value object because address will have meaning only if student entity exists in domain. Thank you, Firoj Shaikh Home Home Let me wish you a warm welcome to my personal website. View on www.firojshaikh.com Preview by Yahoo On Sunday, May 18, 2014 3:35 PM, "Greg Young [email protected] [domaindrivendesign]" <[email protected]> wrote: Entities vary by id and have a life cycle. Value objects vary by data and do not. Its quite simple and most objects can be either. Take a printed note of money. I can be in a context where I go to the store, do I care which $10 note I take out of my pocket? (value object). The central bank however cares about the movement of an individual note (identified by its id) Please do not take the answer before mine to have anything at all to do with DDD definitions and will likely confuse the hell out of you. Value objects have nothing to do with being exchanged between applications. On Sun, May 18, 2014 at 8:29 PM, [email protected] [domaindrivendesign] <[email protected]> wrote: > >Entities are symbolic representations of business objects whose identity and consistency have to be maintained independently of their use by systems applications. >Value objects are symbolic representations of whatever is exchanged between applications and ceases to be identified as such after applications are completed. -- Studying for the Turing test