Hello. I agree with Sam and that is what I've been doing in my applications. Now, if I could only get some free time to add castle to it... ... -- Regards, ...
Just to remember, Repositories are like collections of objects and not DAOs. Sometimes some repository implementation has some iteraction with database, but I ...
I understand what you mean by having the update() method in the repository check for uniqueness. That's kind of what I was hoping for. I'm less clear on what...
Good day! So a repository is not just a DAO? Can you give an example of how it manages instances of domain objects? In my mind, I thought that a repository...
We are trying out DDD in our project and have been stuck with some issues on the best way of orchestrating method calls across multiple domain objects. We have...
You may use Spring Transactional Management that is excelent, or you may implement a custom transaction management using AOP. ... -- Rafael Ponte...
Rafael Ponte
rponte@...
Feb 3, 2008 2:44 am
6822
... It's easy to break the cycle by introducing some temporary variables to signal methods in progress: Order.cancel() { if (this.cancelling) return; ...
I would use Block and Order as an aggregate. The point is, the Ticket entity is inside whitch aggregate? Is it good to have 2 aggregates composed by the same...
Hi Joey, People usually thinks about repository like a way to access data. But we are talking about Object Orientation here. You don't even need to have a...
... Daniel, Thanks for the reply. I am not sure i completely get what you mean by the above. As you said, we are trying to model this as a state transition...
... the Ticket entity is inside whitch aggregate? Currently all three have been kept as separate aggregates since the users want to call methods on any of...
... I meant using the state pattern or a state machine compiler. In those cases the infrastructure already knows which transition is being executed so it may...
Others will no doubt disagree but my feeling is that the domain model should not include transparent persistence. I want my domain model to be agnostic as to...
First of all, I would create three separate aggregates. I believe the best design is creating a service that provides three methods to cancel at different...
In the web app I'm working on, I'm using a similar pattern but the scope of the UnitOfWork is one web request. If anything votes for rollback, the entire unit...
... As long as any _persistence_ of domain objects is controlled, IMHO I don't see how in-memory creation or modification is something we should be worried...
Good day to all! I have written quite a few applications in the years I have been doing .NET, and I always strive to continuously develop my design skills. I...
Workflows generally imply finite state machines that have messages as their inputs and outputs. Most implementations can be formalized in the pi-calculus. This...
... As you know we use state pattern style approaches within entities but the idea of having a workflow layer above the domain is one that we've toyed with. ...
Hi! Would it be ok if you can give a more concrete example of this? Probably some code? When do you know that you need to define workflow/business process...
Hi, I am just coming off delivering a BPM (read workflow) design application developed for over 18 months with a team of 50. Initially I wanted to use DDD for...
I recently wrote a blog on this subject, entitled 'Workflow: A Triumph of Hope over Experience', and which touches on the relationship to DDD. I expect that...
If we divide up workflow into two families, based on the lifetime of the workflow, we’ll see that there are those which span only a single server/user...
Apologies to everyone. We do pretty well most of the time, but this one got through somehow. I think it is blocked now, although there could be some in the...
... Hi Jing, it's hard to be precise.. I think I should have used the word "Entities" instead of "Domain Objects", following Evans terminology. The domain...
Hi all, I've probably missed something, but I think there is no "special recipe" for equality, and probably one equality isn't sufficient for all needs. At...
Hello well, I understand what you're saying. I've ended up considering all non persistent objects different and when they have been persisted, I use its ID to...