Hi Udi I like your method, but what do you do when the data needed to validate is in a database? Take this example. The rule is " the customer code must be...
Although not specifically DDD, you will want to attend the Extreme Programming (XTC) meetings: http://xtcnyc.blogspot.com/. Don Demsak www.donxml.com...
Ema, ... present in ... Interesting question. Putting on my agile hat I would try to understand the rationale behind that rule. I might ask, "Is the reason...
The issue is purely academic :-) My problem is that sometimies I need to put some validation logic outside the domain model just to keep the DM isolated from...
I find it helpful to make a distinction between validating and asserting. I put validation in the presentation layer and assertions in the domain model. An...
I have a couple of questions regarding your organization. Why is it necessary to have a separate package for exceptions? Why not include exceptions in the...
Thanks Don, I will, it does sound like a good start. My hidden agenda, however, is to start a dedicated DDD SIG in NYC (DSN?) at some point in the near future....
James, ... You might run into concurrency problems with that approach, so I'm not sure that I'd say that it is broadly applicable. One option is to let the DB...
... You are quite right validation done before persistence is not sufficient in this case. I'll also point out that while I put validation in the presentation...
I see what your're saying here. Basically, don't move exceptions, repository interfaces or services into their own packages but keep them in the package root...
... On the other hand though, doing validation before persistence does have the advantage of knowing exactly what caused validation to fail - for instance, a...
Thanks Don, thanks Chris, that's great. Chris, when are you going to be in the city? Maybe the three of us could meet by the end of the month? Vlad ... ...
... Take a look at the Spring Framework's DataAccessException hierarchy and DAO support. It provides great support for translating vendor- specific error...
Project kick-off is Oct 15th, so I'll be in the city by then. I'll be hoteling it until I find an apartment (thanks to everyone for advice on that front. The...
... Spring helps a lot in this area. No doubt about that. But let's face it: 1. no 3rd party toolkit can guarantee an exhaustive and up-to-date vendor-specific...
Compared to SF, I'd expect the cost of housing to be just about the same as living in SF proper. I live in NJ, where the housing costs are much lower, but you...
What do you think about returning complex response objects (in some cases containing entities) from the service layer? I think this requires extra work, but I...
I use an out parameter for a similar case. I have the following domain objects: Application (represents some program, service, web application, etc) ...
It seems to me that an exception class would be perfect for the scenario you are describing, it would serve as your response object. The exception class could...