ddd-repositories Questions

3

Solved

I am building an application that tries to abide by clean architecture. I understand that the repository is meant to abstract away the persistence layer and return back entities in terms of the dom...
Lewie asked 4/3, 2021 at 18:17

5

NOTE I'm not asking if I should use the Repository pattern, I care about the How. Injecting persistence-related objects into domain classes is not an option for me: it makes Unit Testing impossible...

3

In a DDD-project I'm contributing to, we're seeking for some convenient solutions to map entity objects to domain objects and visa versa. Developers of this project agreed to fully decouple domain...
Eliseoelish asked 1/5, 2020 at 11:3

2

Solved

I have the following DDD scenario, grouped into the following aggregates: User, Friends (User Associations), File (for user uploading), Galleries (grouping of files), Messages (user communication)...
Bathyal asked 4/5, 2013 at 20:31

2

Solved

I'm struggling with a basic issue. The project is in C#, but the issue is general. I'm following the always valid object principle. As one example I have a product entity that has a mandatory prope...

4

What would be a rule of thumb when designing an aggregate in DDD? According to Martin Fowler, aggregate is a cluster of domain objects that can be treated as a single unit. An aggregate will have ...
Shama asked 9/7, 2018 at 10:58

4

Solved

Which layer should the repository classes go in? Domain or Infrastructure?

1

I have a domain model Customer - Aggregate root - because an order can't exist without a customer Order - entity OrderStatus - value object In my form I need a list of all OrderStatuses. Sho...
Worden asked 26/1, 2011 at 9:1

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

11

Solved

I'm trying to get my head around how to properly use the repository pattern. The central concept of an Aggregate Root keeps coming up. When searching both the web and Stack Overflow for help with w...

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

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...

3

I am confused about Domain Driven Design Approaches. From the sources on net I understood it is way of segregating your Domain Objects and Database Objects but I don't understand the difference bet...
Phelips asked 4/2, 2017 at 7:11

3

Solved

One common reaction that I see for a lot of questions asked here and other forums are like "You don't need to do DDD for that. Its a simple CRUD application, DDD is an over-engineering". Well I a...
Hognut asked 6/8, 2012 at 8:3

2

Solved

Is it generally acceptable that one repository can access another repository? Specifically in this case, I have one aggregate root that uses another aggregate root to determine what entities to add...

7

DDD recommends that the domain objects should be in a valid state at any time. Aggregate roots are responsible for guaranteeing the invariants and Factories for assembling objects with all the requ...

3

Why are repositories' .Add method usually implemented as accepting the instance of entity to add, with the .Id already "set" (although it can be set again via reflection), which should be...

4

Solved

I'm currently designing a backend for a social networking-related application in REST. I'm very intrigued by the DDD principle. Now let's assume I have a User object who has a Collection of Friends...
Wimple asked 18/9, 2014 at 14:27

1

Solved

I want to create an app by implementing DDD using Spring. Let's say I have a business entity Customer and an interface CustomerRepository. Since spring provides CrudRepository and JpaRepository to...

4

I am in the process of refactoring an application and am trying to figure out where certain logic should fit. For example, during the registration process I have to check if a user exists based upo...
Malissa asked 11/1, 2018 at 5:32

4

Solved

I am working on an existing application the uses the Generic Repo pattern and EF6 database first. I am calling a stored proc that returns a complex type that is not an existing entity in my entity ...

4

Solved

I've read and came to realize myself that entities (data objects - for JPA or serialization) with injections in them is a bad idea. Here is my current design (all appropriate fields have getters an...
Joline asked 6/9, 2017 at 4:13

4

A current project needs us to persist domain objects in a NoSQL database such as mongoDB. In many examples (incl. Eric Evans, Vaughn Vernon) the domain objects are serialized and persisted to the m...
Vidda asked 31/5, 2017 at 14:45

2

Solved

If we consider a standard persistence repository, the solution is easy. We put the IStuffRepository in the Domain Layer, and the StuffRepositoryImplementation in the Infrastructure Layer. But what...
Coalfield asked 30/5, 2017 at 14:4

1

Solved

I have a question. we are using a generic repository and our domain model is also the persistence model but that caused us to tweak our Domain Model a lots to be a aligned with the ORM, for example...

© 2022 - 2024 — McMap. All rights reserved.