domain-driven-design Questions

9

Solved

I'm using NHibernate to persist my domain objects. To keep things simple I'm using an ASP.NET MVC project as both my presentation layer, and my service layer. I want to return my domain objects in...
Dudeen asked 30/12, 2009 at 19:42

4

Solved

I am curious, what are the differences between Domain Driven Design and Model Driven Architecture? I have the impression they have certain similarities. Could you enlighten me? Thanks
Holly asked 12/11, 2010 at 16:30

9

Solved

may i know in eclipse, is there any feature that will auto generate domain objects with all table relationship properly mapped in class? can provide me with some reference articles on this?
Syncope asked 19/5, 2009 at 3:5

2

I struggle to find and implement the best practise for the following problem: where is the best location to raise create domain event (the event that notifies for the creation of an aggregate). For...
Shoeblack asked 5/11, 2020 at 22:27

4

Well my application follows DDD design principles. It is an ASP.NET MVC application with the MVC web application being the presentation layer(I moved controllers to application layer though). It al...

6

Solved

Value objects do not have identity. ORM needs identity to update the database. How to trick ORM? (Marking Id for value object as internal won't work because ORM lives in a different assembly an...
Kalle asked 4/6, 2009 at 8:45

5

If using CQRS and creating an entity, and the values of some of its properties are generated part of the its constructor (e.g. a default active value for the status property, or the current datetim...
Scylla asked 26/1, 2017 at 6:50

3

Solved

I'm currently working a lot with DDD, and I'm facing a problem when loading/operating on aggregate roots from other aggregate roots. For each aggregate root in my model, I also have a repository. ...
Bureaucratize asked 7/2, 2011 at 9:28

3

Solved

In Java I would do validation when creating constructor in domain object, but when using data class from kotlin I don't know how to make similar validation. I could do that in application service, ...
Dyne asked 30/8, 2018 at 9:22

2

I've been looking at CQRS but I find it restricting when it comes to showing the result of commands in lets say a Web Application. It seems to me that using CQRS, one is forced to refresh the who...
Purl asked 31/12, 2010 at 12:26

1

how do you deal with url slug generation in DDD? Inside constructor? But entity relying on other service is not good. Pass as constructor argument? I think slugs shouldnt be there because they ar...
Forbear asked 12/3, 2015 at 13:26

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

2

We are preparing to build a large scale server application. To model the logic effectively we're planning to use DDD, including the tactical patterns such as domain events, specifications, re...
Photoluminescence asked 24/11, 2013 at 9:5

3

Solved

Halfway through Architecture Patterns with Python, I have two questions about how should the Domain Model Classes be structured and instantiated. Assume on my Domain Model I have the class DepthMap...

1

I am new to DDD-Domain Driven Development implementation. I have checked out a few projects source code from online which they have implemented using the DDD pattern. In the project structure, I fo...
Stonyhearted asked 8/11, 2020 at 11:49

1

I have an application that tracks the state of external documents locally through integration events. Some external document types aren't shared and some are. When handling an external event such a...
Ardine asked 6/11, 2020 at 2:45

2

Solved

When implementing the Visitor Pattern, is it a bad idea to add additional parameters to the Accept and Visit methods? I have never seen any examples that do this but no mention of it being a bad id...
Underwaist asked 6/5, 2014 at 9:59

3

Solved

I'm aware of the general rule that only a single aggregate should be modified per transaction, mostly for concurrency and transactional consistency issues, as far as I'm aware. I have a use case wh...
Waligore asked 8/10, 2020 at 11:45

2

Solved

I have the following use case. I have an invoice which has lines and a contact. I am wondering whether logic related to checking if all information is there (i.e. at least one line, and the contact...
Shrapnel asked 1/10, 2020 at 14:50

3

I'm trying to get my head around combining some techniques. It seems good practice to never make it possible to create a ValueObject that is not valid. The ValueObject constructor therefor should ...

4

I'm building a app with following architecture: UI - Application - Domain - Infrastructure I have a Application Layer that need use custom exceptions. Where I keep these custom exceptions? In Inf...
Yarn asked 3/10, 2011 at 12:9

2

Solved

What do you think about have persistence models and domain models separated? I've read that you don't have to mix persistence concerns with your business concerns (DDD, Clean Architecture,MartinFow...
Jealous asked 13/8, 2020 at 10:42

5

Solved

We are at a point in our development cycle (asp.net mvc applciation), where we need to introduce changes to our existing commands and events (say adding/removing a few properties etc). I have bee...
Overblouse asked 13/5, 2013 at 11:27

1

I'm trying to follow DDD using EF Core and in my model I have the following: private List<TeamPerson> _personLinks; public IReadOnlyCollection<TeamPerson> PersonLinks => _personL...

3

Solved

trying to figure out some concepts and haven't been able to understand What is a use-case in the Ports and Adapters architecture ? What an implementation of a use-case would look like ? What ...

© 2022 - 2024 — McMap. All rights reserved.