Domain-Driven-Design-Example | Blog series supplementary domain-driven design C | Functional Programming library
kandi X-RAY | Domain-Driven-Design-Example Summary
kandi X-RAY | Domain-Driven-Design-Example Summary
Blog series supplementary domain-driven design C# repository that (hopefully) actually makes sense.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Domain-Driven-Design-Example
Domain-Driven-Design-Example Key Features
Domain-Driven-Design-Example Examples and Code Snippets
Community Discussions
Trending Discussions on Domain-Driven-Design-Example
QUESTION
me and my colleges are discussing about Value Objects and Entities in the Context of Domain Driven Design. It is a little bit theoretical so maybe not that easy to Answer.
First question: Can an Aggregate Root be an Value Object ?
Second Question: In the following picture you can see an Domain Model. It contains Aggregate Roots and the related Value Objects which contain the IDs of the Aggregate Root.
Are they entities or value objects?
Which concept of identity do they have?
Which concept of identity do the members of the aggregates have?
Link to the article: https://www.mirkosertic.de/blog/2013/04/domain-driven-design-example/
Thanks for any help
...ANSWER
Answered 2017-May-16 at 14:41Difference between value object and entity is, that you don't care about value object identity. It really doesn't matter whether you're operating on one or another value object, because, well... they whole purpose of existence is serving you only value. Entity however is distinguished between other entities and it matters whether you're referring to one or other, even if they properties have the same values.
For example you could have following value object
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Domain-Driven-Design-Example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page