domain-driven-design Questions
1
As I understand, there is a 1-1 relation between a Repository and a AggregationRoot.
Suppose I have an AggregationRoot_A with an attribute holding an id for an AggregationRoot_B.
I will have Reposi...
Choochoo asked 16/7, 2020 at 18:59
3
Here is a quote from Mockito unit testing framework:
Don't mock value objects
Why one would even want to do that?
Because instantiating the object is too painful !? => not a valid
reason...
Haag asked 15/11, 2017 at 9:52
4
Solved
Should Use Cases or Application Services have interfaces and implementations when following a hexagonal architecture with ddd principles? For example, the use case "delete a video", shoul...
Obligatory asked 9/7, 2020 at 15:13
2
Solved
I am trying to implement domain driven design in my project.
Here is my base Aggregate class:
public abstract class UUIDAggregate {
private final DomainEventPublisher domainEventPublisher;
prot...
Pratique asked 4/10, 2019 at 19:17
3
Solved
I am running into an issue with proper architecture when using gRPC. In a traditional DDD approach, the core project (i.e. innermost layer / domain layer) has no references to the outside layer and...
Justiciary asked 24/6, 2020 at 20:43
2
I have an issue that I am not sure how to solve when DDD is assumed and using C#/EF Core.
Simplified situation: We have 2 aggregates - Item and Warehouse. Each of them has its identity by External...
Kitchenette asked 2/3, 2019 at 22:29
3
Solved
How do I persist value objects in Entity Framework without polluting my domain model? EF (well, relational DBs in general) require me to define a key - which my value objects don't have out of the ...
Frightened asked 23/5, 2015 at 3:6
2
Solved
Domain events are well known in DDD, which can be published in Aggregate Roots or in Domain Services. My question here is, Can domain events be published in application services/use cases?
For exam...
Thaumatrope asked 27/5, 2020 at 22:37
1
I am using EF Core/.NET Core 2.1, and following DDD. I need to implement an audit log of all changes to my entities, and have done so using code from this blog post (relevant code from this post in...
Kone asked 16/7, 2018 at 19:40
2
Solved
I'm looking for an advice related to the proper way of implementing a rollback feature in a CQRS/event-sourcing application.
This application allows to a group of editors to edit and update some ed...
Algophobia asked 30/1, 2018 at 22:58
4
Let's use the classic example of blog context. In our domain we have the following scenarios: Users can write Posts. Posts must be cataloged at least in one Category. Posts can be described using T...
Bullpen asked 4/11, 2015 at 11:47
3
Solved
I'm a little bit confused. I just watched
Julie Lerman's Pluralsight video on DDD and here's the confusion I have:
Having a simple online store example with:
Purchase Orders with Items for Supplier...
Repugnant asked 30/5, 2018 at 5:49
1
Solved
I'm trying to use Domain Driven Design (DDD) in a Python project, but it looks like a lot of boilerplate code. I think I'm on the wrong path.
I've three files, all defining the item for each...
Jae asked 16/1, 2020 at 19:36
2
I am writing an application that I wish to follow the DDD patterns, a typical entity class looks like this:
@Entity
@Table(name = "mydomain_persons")
class Person {
@Id
@GeneratedValue(strategy...
Lune asked 19/9, 2019 at 20:29
4
Building a time tracking application I am trying to determine the best way to design the aggregate roots.
The basic core entities are Client, Project, Employee, ProjectAssignment, Department, Time...
Vorlage asked 9/3, 2017 at 19:42
1
I have this entity:
public int Id { get; private set; }
public string Name { get; private set; }
public Behavior Behavior { get; private set; }
public Product(int id, string name, Behavior b...
Mccusker asked 13/8, 2018 at 9:10
3
After reading lot of posts, I realised if an aggregate root exists for a concept/context, we need to have a single repository for that whole concept/context.
If thats the case, I see there won't b...
Cule asked 27/2, 2020 at 18:45
3
Solved
I have two "big" entites or aggregates, which have their own business logic - they are saved, updated and destroyed in separate transactions. They have their own child entities, which are manipulat...
Hausa asked 20/2, 2020 at 17:17
4
Solved
Historically I have performed validation of my objects within their constructors and thrown an exception when validation fails. For example:
class Name
{
const MIN_LENGTH = 1;
const MAX_LENGTH ...
Guadalajara asked 8/12, 2017 at 14:19
0
I'm working on Vue project and it's getting bigger, so I rewrite whole project and apply MVVM and DDD like architecture like below.
UI layer (MVVM ViewModel=vue/Model=Vuex)
Domain layer
Server la...
Predominate asked 16/3, 2020 at 17:3
1
Solved
Consider the following class. It tries to protect the access to the _assignedTrays.
Actually, it works perfectly, since EF automatically links the backing field _assignedTrays to the property Assi...
Skimpy asked 10/3, 2020 at 12:14
2
Solved
I have a question regarding what best practice is when it comes to verifying existence of entities across bounded contexts. Is this even a valid approach in DDD? BC are supposed to be self-containe...
Unproductive asked 4/3, 2020 at 21:38
2
Solved
I have not found concrete examples of this. I know that each bounded context has its own versions of entities and you should not share entities across contexts. But how do I manage this in relation...
Tripod asked 1/3, 2020 at 22:4
2
Solved
As I read, there are two patterns to define one microservice, by business capability and by subdomain. But I still find it very ambiguous. I get confused how these two patterns differentiate from e...
Backlash asked 15/8, 2017 at 8:1
2
Solved
I am quit new to DDD.
I have checked the responses for: Can a repository access another by DDD?
prior to asking, but could not find any relevant information.
In my application, I have an object wh...
Domenech asked 23/2, 2020 at 16:2
© 2022 - 2024 — McMap. All rights reserved.