Re: Many To Many relationship and D2W
Re: Many To Many relationship and D2W
- Subject: Re: Many To Many relationship and D2W
- From: Art Isbell <email@hidden>
- Date: Wed, 18 Dec 2002 16:50:47 -1000
On Wednesday, December 18, 2002, at 03:44 PM, Art Isbell wrote:
A <<-->> B is modeled as A <-->> AB <<--> B
If I want to access an attribute in the correlation (or join) entity
AB, I delete the flattened to-many relationships A -->> B and B -->>
A. I make the underlying to-many relationship A -->> AB and B -->> AB
class properties. I make the underlying to-one relationships AB --> A
and AB --> B class properties.
And I unset AB's primary keys as being used for optimistic locking
(get rid of the lock icons). Not sure why EOModeler sets these
attributes to be used for locking.
If I don't need to traverse certain of these relationships, I usually
remove them from the list of class properties because I've noticed some
excessive fetching at times when both a relationship and its inverse
relationship are class properties.
This configuration seems to work fine, but if anyone has any
corrections, warnings, suggestions, etc., I'm all ears.
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.