Model object and additional attributes
I have a model e.g. Book
. Besides ‘natural’ attributes of a book, I have some mandatory IDs I need to carry on, like companyId
, groupId
. They are related to which organization unit this book belongs to.
Adding new service to authenticated website
So I’ve created an API that I want to leverage to add some functionality to an existing web app. My current website authenticates users using SAML. What I’m looking to do is instead of moving the code into the existing codebase is to find a way to authenticate to the new site and leverage the APIs that are already there.
DDD: Alternative view of the Model?
I have a model class, let’s say it’s a Book
. I need it to be displayed on the screen. I want to have an escaped version of it, so I do not need to escape fields manually.
DDD: Alternative view of the Model?
I have a model class, let’s say it’s a Book
. I need it to be displayed on the screen. I want to have an escaped version of it, so I do not need to escape fields manually.
DDD: How to refer/select a value object inside aggregate?
We have an aggregate of:
DDD: How to refer/select a value object inside aggregate?
We have an aggregate of:
DDD: placement of method whose behavior may be implemented with single database query
Let’s say we have Book
entity in our library. A requirement says:
DDD: storing additional data with the model
Our domain is operated within certain context. This context is described by some additional values, like a fooId
– id that does not have a meaning in domain business, but it’s more a flavor for the whole application and modules.
DDD: Global unique identities vs surrogate
Let’s start with an example: we have an entity: Book
. It has unique identity: Isbn
– a value object that wraps a String
. This is an UUID.
“Implementing DDD” by Vernon: value object or not?
On page 382 of this book there is a passage talking about using value objects in aggregates, under the (entity) root. There is an example of Product
that, besides other values, contains a Set<ProductBacklogItem>
– collection of entities.