Re: refresh an enterprise object
Re: refresh an enterprise object
- Subject: Re: refresh an enterprise object
- From: Art Isbell <email@hidden>
- Date: Mon, 21 Jun 2004 16:22:06 -1000
On Jun 21, 2004, at 3:58 PM, Nathan Dumar wrote:
I think aProduct is an EO. Are you sure
addObjectToBothSidesOfRelationshipWithKey is a method in an EO?
EO's inherit from EOGenericRecord or EOCustomObject, both of which
implement EORelationshipManipulation which declares
addObjectToBothSidesOfRelationshipWithKey().
I haven't needed to use it yet, so I don't know much about it.
You may not have thought you needed to use it yet :-) But it really
should be used, along with
removeObjectFromBothSidesOfRelationshipWithKey(), whenever a
relationship value is set. It works with relationships of all
cardinalities and whether an inverse relationship has been defined.
This allows one to add or remove an inverse relationship from an
eomodel without changing Java code.
Not using these methods risks rendering the object graph inconsistent
which may have been the problem that spawned the original question in
this thread.
Aloha,
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.