Week 45, year 2017
- 3 Reasons to Model Identity as a Value Object - On of the defining characteristics of an Entity is that it has identity. From the Blue Book: “Some objects are not defined primarily by their attributes. They represent a thread of identity that runs through time and often across distinct representations… An object defined primarily by its identity is called an ENTITY” (Evans, 91) There are different ways of representing identity. In our CRUD world, we might use a Guid or an int that’s stored as a primary key in a SQL table. In DDD implementations, you might see a different pattern - using Value Objects as identifiers for Entities. What’s the point in doing that? [Nick Chamberlain on Nick Chamberlain]
Permalink |
From 06 November 2017 to 12 November 2017 |
Last updated on: Mon, 7 Jun 2021 09:09:18 GMT