All Questions
11 questions
0
votes
3
answers
3k
views
DDD - storing and retrieving entities of an aggregate from the outside
In my doctor's appointment booking system, I identified the following entities:
Doctor
Patient
Appointment
I also identified an aggregate, which is Doctor (aggregate root) and Appointment. It's an ...
1
vote
3
answers
2k
views
How to design an API wrapper with bulky operations on domain object? (Need guidance)
I need some guidance in designing an API wrapper for my backend APIs. I have tried to keep it as specific as possible.
Context: We have a project which supports certain file operations like edit, ...
2
votes
2
answers
1k
views
DDD Request Validation Handling
I stuck somewhere that I can't find a solution! There are plenty of validation questions here, but as far as I see, most of them were asking about entity validation. But what about request validation? ...
0
votes
3
answers
616
views
Assigning responsibility for cancelling an Order
During a conversation with our Domain Expert we can across this feature:
A Customer service agent can cancel an Order by decreasing its quantity. To cancel an Order we decrease its quantity by the ...
2
votes
2
answers
2k
views
From a DDD perspective is a report generating service a domain service or an infrastructure service?
Let assume we have the following service whose responsibility is to generate Excel reports:
class ExcelReportService{
public String generateReport(String fileFormatFilePath, ResultSet data){
...
7
votes
5
answers
5k
views
How to model an address type in DDD?
I have an User entity that has a Set of Address where Address is a value object:
class User{
...
private Set<Address> addresses;
...
public setAddresses(Set<Address> ...
1
vote
1
answer
1k
views
Applying DDD principles in a RESTish web service
I am developing an RESTish web service. I think I got the idea of the difference between aggregation and composition. Aggregation does not enforce lifecycle/scope on the objects it references. ...
8
votes
2
answers
2k
views
Domain Services as facades
I read .NET Domain-Driven Design with C#: Problem - Design - Solution and I noticed that the author created a domain service for each aggregate root.
However, the domain services were only facades to ...
26
votes
5
answers
4k
views
Do ORMs enable the creation of rich domain models?
After using Hibernate on most of my projects for about 8 years, I've landed on a company that discourages its use and wants applications to only interact with the DB through stored procedures.
After ...
2
votes
1
answer
1k
views
DDD and validation of aggregate root
Suppose an aggregate root : MailConfiguration (wrapping an AddressPart object). The AddressPart object is a simple immutable value object with some fields like senderAdress, recipentAddress (to make ...
97
votes
6
answers
146k
views
Difference between a service class and a Helper class [closed]
I would like to know what differentiates a Service class from a utility class or a helper class?
A class only with underlying methods calls the dao's is a service? Doesn't the usage of Helper ...