Thx for the replies. Actually, it seems like I've forgotten to ask 'the' question in my post. Suppose you have a windows application that uses your domain...
Very nice. I would definitely use this approach. ... From: domaindrivendesign@yahoogroups.com [mailto:domaindrivendesign@yahoogroups.com] On Behalf Of Jesse...
... Off the top of my head, a UOW would handle that just fine. If the ship is the root of your aggregate, then that's likely to be the root of the transaction...
Yes, the UOW can handle this when it comes to persisting to the DB. But, how do you handle this, if you remove items from your list on this 'container detail...
... You're creating two level's of transactions here, one between the UI and the objects, and one between the objects and the persistent storage. Basically, if...
You Said: "However, you do not want to persist these changes to the DB on that form, you only want to persist the changes when you close the ship detail form."...
Man. I just ended up repeating a bunch of accessor code for the aggregates' collections. I can really see the usefullness in this and I wish I would have...
I think it is difficult to give a single answer to this question (i.e. 'it depends'). In a web-enabled application context, my preference would be to manage...
Hi, Stateful services looks like a misunderstood domain's concept to me. IMO, services are business process modeled as an object that stays in domain layer and...
For my web apps, I use a service to write to the session entity, which stores the state of the session. the service has a state to store application settings...
I have an entity that needs to notify observers when some of its properties have changed. One particular Observer is a NotificationService. The notification ...
I would actually "advise" persistence methods on the repository (DAO) and fire a some kind of a email notification in "AfterReturningAdvice". I assume you...
My persistence operations are on my repository, but generally there is not an Update operation on a repository. I have a service layer that the update goes...
Well, if you're developing in java and using hibernate 3 you could use it's event system Jesse Napier wrote: My persistence operations are on my repository,...
I actually just faced an identical challenge on the very same platform you use.(NHibernate/ .Net.) What I do, is have the entities implement an interface, ...
Chris, thanks for the excellent suggestion. I was thinkning that I would have to do something with PostFlush. Your solution sounds like something that will...
... The "real notification methods" are the methods that do the actual notification i.e., send emails to people, write stuff to db's etc. The Methods on the...
... That's exactly how notification responsibility was allocated in my former employer's app in the status quo antebellum. I didn't like it because it felt...
hmmm u should have a look at... http://groups.yahoo.com/group/EnterPriseModelling we are posting class diagrams about enterprises. suggestions are welcome!...
Recently I have noticed that some rather specific models seem to invite more discussion. For example, over at colormodeling@yahoogroups.com it seems to have ...
... I have a set of objects which have a property Status with options [Draft, Active, Previous, Retired]. The object can flow between states. Only one object...
If the set of objects is related to a single "parent" (i.e. each object is associated with one and only one parent object), then the parent object could hold a...
I see what you are saying. I originally had the concept that this object would be an aggreagate root. However, it is still the child of another object. And I...
I've been searching (in vain) for a discussion board that focuses around the collaboration patterns discussed in "Streamlined Object Modeling" by Nicola,...
... Cliff, Would it help to discuss the different life cycles for your different types of request? I mean that the detailed "business" process for your...
... Yes, each "Request" entity was going to have a property that respresented its state (or "status") which would indicate which step of the process/workflow...