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...
Show off your group to the world. Share a photo of your group with us.

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 3459 - 3488 of 15994   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
3459
Hello, Let me describe the situation. I have a Person class that has a Set of Addresses. Now in the DB, there are three tables: person, person_address, and...
Karthik N
karthik_nar
Offline Send Email
Mar 1, 2006
8:20 am
3460
In practice, addresses usually are entities, not value objects. Just from your data model, if you have a person_address table to associate person with address,...
Bert Hooyman
berthooyman
Offline Send Email
Mar 1, 2006
8:40 am
3461
Berty, <your quote> When, however, address is meaningless unless tied to a person, you should dump the person_address table and introduce a foreign key in your...
Karthik N
karthik_nar
Offline Send Email
Mar 1, 2006
8:57 am
3462
Karthik, ... Person object ... model (and ... I'd say that's okay, but it all depends on the granularity of the update operations (e.g. an updateAddress(a),...
Pascal Lindelauf
plind69
Offline Send Email
Mar 1, 2006
9:00 am
3463
Your adddress is still an entity - no longer a top-level one. It's editable so it's an entity. Make sure you carry its ID along when you retrieve it. Hibernate...
Bert Hooyman
berthooyman
Offline Send Email
Mar 1, 2006
9:09 am
3464
berty, isn't it strange though? if i chose to keep address attributes in the person table, versus moved them to a table of their own (for DB reasons), i end...
Karthik N
karthik_nar
Offline Send Email
Mar 1, 2006
10:42 am
3465
... person table, versus moved them to a table of their own (for DB reasons), i end up with a >situation of vo versus entity. ... email, which might be stored...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Mar 1, 2006
11:17 am
3466
Conceptually, all is well. But reality may be a little tougher to persuade. The problem as it was outlined earlier is that there must a way to distinguish the...
Bert Hooyman
berthooyman
Offline Send Email
Mar 1, 2006
11:50 am
3467
I'm starting out with something new, and just after a couple of lines of code i stumble upon the Date problem. Javas libs are quite famous for beeing too...
Anders Sveen
anderssveen
Offline Send Email
Mar 1, 2006
12:11 pm
3468
... Joda time works quite nicely for us. In fact we use both TimeAndMoney and Joda in one application. Dmitriy....
Dmitriy Kopylenko
dima767
Offline Send Email
Mar 1, 2006
3:00 pm
3469
... How about feedback from another wandering soul? :) I agree with Sergio. Reading is often quite different from creating and adding and getting the lineItems...
Pascal Lindelauf
plind69
Offline Send Email
Mar 1, 2006
5:25 pm
3470
The issue of entity vs value object isn't simply one of persistence. It's an issue of variability which occurs in both objects and databases independently. ...
agilista
Offline Send Email
Mar 1, 2006
6:55 pm
3471
... This group IsA Forum with the option to receive mail when posts occur.. I have so many feeds I follow, I chose to receive the e-mails because I wouldn't...
agilista
Offline Send Email
Mar 1, 2006
7:04 pm
3472
Just some more thoughts on this common relationship between Person and Address... I think the database makes the distinction between Value Object and Entity...
Christian Crowhurst
christian2683
Offline Send Email
Mar 1, 2006
7:20 pm
3473
Chiming in on an earlier point... if you add an address_id as a FK to the Person table, you can keep the address table to store information for any other...
K.M. Ensign
ns1gn
Offline Send Email
Mar 1, 2006
7:31 pm
3474
... Yeah, I agree! "joda-time" library works very well. We've used it in a couple of projects too. -- Yagiz Erkan -- http://blog.decaresystems.ie...
Yagiz Erkan
yagizerkan@...
Send Email
Mar 1, 2006
9:09 pm
3475
Why is it necessary for the java code to create a new address object simply because one of its attributes changes? Particularly, why is that the expected...
Jonathan Harley
agilista
Offline Send Email
Mar 2, 2006
2:58 am
3476
BTW, I just responded via e-mail to the Value vs Entity discussion because I received the thread in my e-mail. How is it that a 'forum' is different than this?...
agilista
Offline Send Email
Mar 2, 2006
3:02 am
3477
Jonathan, this goes back to Eric's DDD book and the distinction between entities and value objects. if you read up that section you'd be able to relate. So...
Karthik N
karthik_nar
Offline Send Email
Mar 2, 2006
3:56 am
3478
Christian, Very nice summary of the approach. I agree with you. One last thing though. If a new() corresponds to a new row in the address table, how do we...
Karthik N
karthik_nar
Offline Send Email
Mar 2, 2006
4:03 am
3479
Keith, In such a case, I would prefer to keep join tables. So let's say Person and Location both have an Address. I would prefer this schema person location ...
Karthik N
karthik_nar
Offline Send Email
Mar 2, 2006
4:05 am
3480
Pascal, ... Hmmm. I still have a discomfort with this, it puts the domain in an "unnatural state". Because the domain gets updated in the view layer and not...
Karthik N
karthik_nar
Offline Send Email
Mar 2, 2006
4:55 am
3481
My guess would be that some people prefer the forum interface. As I said before; there are systems out the such as community server which can support both...
gregory young
gumboismadeo...
Offline Send Email
Mar 2, 2006
5:17 am
3482
Hi Jonathan, ... object simply ... the ... understanding. The key reason that the address shouldn't change is based on the usual argument that "Value Objects...
Christian Crowhurst
christian2683
Offline Send Email
Mar 2, 2006
8:35 am
3483
Hey Karthik, Thanks for the recap.. I loved Eric's book by the way, and highly recommend it -- of course, it's practically required reading at ThoughtWorks. I...
Jonathan Harley
agilista
Offline Send Email
Mar 2, 2006
8:39 am
3484
Still, I can see the threaded discussions online and/or the threaded discussions in my e-mail InBox, and I can respond in either situation. I guess I've never...
Jonathan Harley
agilista
Offline Send Email
Mar 2, 2006
8:41 am
3485
Thanks for the feedback. I guess I'll be doing Joda. Anders, ... Anders Rene Sveen +47-9244-3820 anders@......
Anders Sveen
anderssveen
Offline Send Email
Mar 2, 2006
8:51 am
3486
Hey Christian, Thanks for the considered response. It seems to me that there is a domain-based issue with immutability, such that the rules/conventions of the...
Jonathan Harley
agilista
Offline Send Email
Mar 2, 2006
8:56 am
3487
... this particular object, it invalidates the original; necessitating a wholly new instance of >the object", I say, "Interesting! Potentially inefficient, ...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Mar 2, 2006
9:39 am
3488
alasdair, exactly my point with addresses. however how does one make sure that the old address is removed from the database? so if i have a person table and a...
Karthik N
karthik_nar
Offline Send Email
Mar 2, 2006
9:58 am
Messages 3459 - 3488 of 15994   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