Subclasses and abstract classes in DDD
I have an abstract base class called Person with subclasses Employee and Customer. How do you deal with the situation where Employee is also a Customer? How would this series of entities be created? Cheers ...
I have an abstract base class called Person with subclasses Employee and Customer. How do you deal with the situation where Employee is also a Customer? How would this series of entities be created? Cheers ...
Boring intro: I know - DDD isn't about technology. As i see it - DDD is all about creating ubiquitous language with product owner and reflecting it into code in such a simple and structured manner, that it just can't be misinterpreted or lost. But here comes a paradox into play - in order to get rid of technical side of application in ...
I have an ASP.NET 3.5 SP1 Webforms Application. I use the MVP pattern (supervising controller) with DI (autofac). My presenters call to the repository contracts defined in my Domain (DDD) which are implemented in an Infrastructure project. The repository methods the presenters call can hork, so I need to log exceptions and then set an...
Hi everyone, I'm doing a kind of research on the topic "Domain Driven Design". My question is what tools (or maybe environments) do you use, that support this paradigm? I know that I can google it, but I wonder which of them actually work and are useful, since I have no experience with neither of them. I'm interesting mainly in the .N...
Hi all, I have the following DB model: **Person table** ID | Name | StateId ------------------------------ 1 Joe 1 2 Peter 1 3 John 2 **State table** ID | Desc ------------------------------ 1 Working 2 Vacation and domain model would be (simplified): public...
I'm pretty new to DDD and JPA. I'm working on a generic Repository with JPA and Spring. I really like the approaches exposed in the articles DDD: The Generic Repository and JPA implementation patterns: Data Access Objects. My aim is to build the perfect Repository in Domain-Driven Design with JPA and Spring. I use an internal generic R...
Hi all, consider the following simplified example: public class Ticket { public int Id; public TicketState State; public Ticket() { // from where do I get the "New" state entity here? with its id and name State = State.New; } public void Finished() { // from where do I get the "Finished" state e...
I have a list of classes that represent mydatabase tables for example Address,Client. My GUI tends to be a grid of data and an data entry form. This works fine for single table data entry however I now have a form that has client information and their address. I was thinking of using a ViewModel combining the Address and Client class ...
I'm using C++ (with the Qt library) to make a simple domain modeled application. I am writing my own O/R mapping classes. As this application will grow in the future I'm trying to keep a clean codebase with clearly separated layers. The problem I am having is when and where to load aggregate roots that are referenced in an object in ano...
With the new ASP.NET MVC 2 validation features, we can decorate the properties of our domain model objects with DataAnnotations attributes that describe criteria for valid values. The DefaultModelBinder knows about this and populates ModelState.IsValid accordingly before a controller action is invoked. Since the validation rules are defi...
In Eric Evans' Domain Driven Design approach, would it be a good idea to use Rocky Lhotka's CSLA.NET for designing Business Entities for Domain Layer? ...
I downloaded the DDD Sample Application (based on book by Eric Evans) and it uses a hsqldb. However, I can't seem to find how this db is set up. I opened the project in Intellij and everything builds like a charm. But nowhere do I find such a hsqldb... I'm not an experienced Java developer, so I'm probably missing something. Anyone that ...
I started experimenting with Spring Roo just recently. It does a very nice job helping one build a domain model with integrated persistence rather quickly. As it adds persistence functionality in aspects, I started think about the following question: Roo adds finders (load an instance of a class from the database which meets variable cr...
I've been studying DDD for the past 2 weeks, and one of the things that really stuck out to me was how aggregate roots can contain other aggregate roots. Aggregate roots are retrieved from the repository, but if a root contains another root, does the repository have a reference to the other repository and asks it to build the subroot? ...
Obviously I am wrong in saying that DDD is similar to EAV/CR in usefulness, but the only difference I see so far is physical tables build for each entity with lots of joins rather than three tables and lots of joins. This must be due to my lack of DDD understanding. How do you physically store these objects to the database without sign...
I'm doing research and one point I want to cover is "What is the relationship between Domain-driven Design and Aspect oriented programming?" I know that a main principle in DDD is separation of concerns and I understand that. What I'm not really certain is, whether aspects in AOP acts like "sub domains" in our domain in DDD. Are these...
Hello; my company is thinking about implementing a new financial compliance trading application which is an application that would check all trades that would be executed by the company. A very simple check might be "Don't Invest in Stocks that sell Alcohol" for example. We need to define a financial business object model and then d...
Can someone explain the difference between domain and application services by providing some examples? And, if a service is a domain service, would I put the actual implementation of this service within the domain assembly and if so, would I also inject repositories into that domain service? Some info would be really helpful. ...
In a blog application developed using domain driven design a 'Post' entity has a related collection of tag entities. On creating the post (e.g populating the object from the UI) i would like to call a third party API via REST which takes the content of the post and extracts semantic tags (link text) for association. Main Question : Wh...
I have a domain interface public interface ITicket { ... TicketWorkflowStatus StatusId{get;set;} // Enum } but the linq-to-sql persistance layer on the database wants to use int, can I change it in the dbml so that the local type is TicketWorkflowStatus? What are my options? ...