Quantcast
Channel: User bdsl - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Comment by bdsl on DDD: Should 'country' be a Value Object or an Entity?

$
0
0
To maybe clarify this a bit. We know that in the real world countries can change. For instance Czech Republic was renamed to Czechia. The question is does your application need to understand that that is a name change, or is it fine to treat the Czech Republic and Czechia as if they were entirely different. If it's the former you may need an entity, and if the latter a value object.

Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>