Search the web
Sign In
New User? Sign Up
domaindrivendesign · Domain-Driven Design
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 8412 - 8441 of 16048   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
8412
In this kind of scenario I usually have a state machine on the class. Simple states would do Creating, Live Some constraints are added if the state == Creating...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
7:31 am
8413
My rule is simple. "Can the child exist without the parent?" [Order] (Order) 1---* (Lines) [OrderLine] If you delete the Order then its lines should also be...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
7:36 am
8414
For me there are two types of "Can I" on an object 01: Is it logical for this object to perform this task based on its state. 02: Is it permissible for the...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
7:53 am
8415
Hello Jørn, This is a typical "have your cake and eat it" scenario that customers think they'll need. It ends up being utterly dumb data and as soon as your...
Eben Roux
eben_roux
Offline Send Email
Oct 3, 2008
8:26 am
8416
I don't think I follow your point, you say you would "use aggregation (prohibit delete)", but in your example its obvious that Person does not sit inside the...
Paul Batum
paul.batum
Offline Send Email
Oct 3, 2008
1:23 pm
8417
Just as a follow up, thinking about it a bit more, it doesn't really make sense to cascade deletes across aggregate boundaries because you may be breaking...
Paul Batum
paul.batum
Offline Send Email
Oct 3, 2008
1:29 pm
8418
... [ClassName] (RoleName) One order has many lines. [Order] (Order) 1---* (Lines) [OrderLine] This is a composite association, the order lines will be deleted...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
1:53 pm
8419
... Just as a follow up, thinking about it a bit more, it doesn't really make sense to cascade deletes across aggregate boundaries because you may be breaking...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
1:55 pm
8420
That would explain why I didn't follow your point earlier. The Evans concept of an aggregate is different to a UML aggregation association. Regarding your...
Paul Batum
paul.batum
Offline Send Email
Oct 3, 2008
2:10 pm
8421
Why would you want to perform multiple save operations? Deleting a node and all its sub-nodes is an atomic operation and should therefore occur within a...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
2:34 pm
8422
Regardless of which way you want to do it (cascade across aggregate roots, or not) you obviously want it to be atomic. The atomicity is not relevant. Given you...
Paul Batum
paul.batum
Offline Send Email
Oct 3, 2008
2:43 pm
8423
In that case maybe you could explain it to me and I could be educated. Although I do feel that hijacking the word "aggregate" to mean something else from the...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
3:08 pm
8424
Hi Pete, Check out http://tech.groups.yahoo.com/group/domaindrivendesign/message/7533. With respect to the UML's notion of aggregation, remember these words...
Randy Stafford
randalparker...
Offline Send Email
Oct 3, 2008
3:36 pm
8425
Okay, I haven't read in detail, but the first paragraph or two suggests this is a value type scenario. I recently had to implement value types in an app...
Peter Morris
mrpmorris
Offline Send Email
Oct 3, 2008
5:23 pm
8426
I'm sorry Pete but to perfectly honest that wasn't at all helpful in regards to answering my question....
Paul Batum
paul.batum
Offline Send Email
Oct 3, 2008
9:52 pm
8427
I worked on a project with similar requirements in the past. One question you have to ask yourself is does any *logic* change with any of these customization...
Stefan Moser
stefanmoser16
Offline Send Email
Oct 5, 2008
12:03 pm
8428
I prefer explicitly Specifying validity context, I usually separate IsValid from IsValidForPersistence, thus the infrastructure would allow saving of entity by...
Mohammed Abed
moh_abed_2002
Offline Send Email
Oct 5, 2008
12:07 pm
8429
... Scott, I'm just a newbie, but might I suggest that the Route Specification and Itinerary example in the Ubiquitous Language section of Evan's book is an...
Ged Byrne
gedb01
Offline Send Email
Oct 5, 2008
12:11 pm
8430
[my google-fu has failed me. if the answer exists elsewhere, please point me to it. thanks] We our dipping our toes into the domain driven waters and have some...
Kevin Lawrence
kevinwilliam...
Online Now Send Email
Oct 5, 2008
12:11 pm
8431
... Hello, I'm new to the group and still only quarter of a way through the book, so I can only answer from my own experience. My apologies it isn't...
Ged Byrne
gedb01
Offline Send Email
Oct 5, 2008
12:11 pm
8432
Remember that aggregate boundaries are a modeling choices, and they are coevolving with the other modeling choices, such as which classes you want and which...
Eric Evans
ericevans0
Online Now Send Email
Oct 5, 2008
12:24 pm
8433
Today, we are often using looser typing of the domain model. But only for the attributes that do not affect business logic. Simply a key/value construction...
Tomas Karlsson
marcellus874
Offline Send Email
Oct 5, 2008
1:58 pm
8434
Hi Ged, Thanks for your input! What are your thoughts on the cascading of saves? Are they along the same lines or would you be comfortable with cross-aggregate...
Paul Batum
paul.batum
Offline Send Email
Oct 5, 2008
2:43 pm
8435
Hi Thomas ... Yes, it ain't really an easy requirement. Mentally I have begun to work with two different extension models, each of which is more complex than...
Jørn Wildt
jorn_lind_ni...
Offline Send Email
Oct 5, 2008
6:44 pm
8436
Hi Randy I think my problem is that I don't have to worry about stuff like this. In my framework I can visually specify delete rules based on UML association...
Peter Morris
mrpmorris
Offline Send Email
Oct 5, 2008
7:35 pm
8437
Hi, Interesting comment on reporting! It will help me in the design of the system I am working on now. We are actually thinking of duplicate models: one DDD...
Tomas Karlsson
marcellus874
Offline Send Email
Oct 5, 2008
8:04 pm
8438
... Thanks for reminding me about this. I would probably have implented a bunch of switch statements somewhere to check for all the basic types (int, date...
Jørn Wildt
jorn_lind_ni...
Offline Send Email
Oct 5, 2008
8:21 pm
8439
It's funny how the more I obsess over this topic and search the web for opinions, the more my own thoughts have already been...er..thought. Check out this: ...
moffdub
Offline Send Email
Oct 6, 2008
12:06 pm
8440
Thank you, Eric, that provoked a whole bunch of discussion here in our workplace. Plan Periods might turn out to be the appropriate aggregate. A follow up...
Kevin Lawrence
kevinwilliam...
Online Now Send Email
Oct 6, 2008
9:40 pm
8441
Eric gives great advice here, especially in the paragraph below where he questions why people are looking at these smaller slices an perhaps they might be...
Greg Young
gumboismadeo...
Offline Send Email
Oct 6, 2008
10:51 pm
Messages 8412 - 8441 of 16048   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help