Re: Re: entities Vs value object
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAC9RQthMRv5V91BEUZdtLYVtX0C8CWmYKzSMV_-K6hvmKafb9Q@mail.gmail.com> |
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