| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Owen (and maybe Benjamin too),
Sounds like you have relationships going in only one direction, in your model. If you use the control-click-drag method to make relationships, a reciprocal relationship is made automatically.
Check the .java file (created by EOModeler) for each entity. GroupClass.java should have a setUser(UserClass) method, and UserClass.java should have a setGroup(GroupClass.java) method.
Take care,
Nathan
On Sep 28, 2004, at 12:49 AM, Owen McKerrow wrote:
I sometimes have the same problems even when I use addObjectToBothSidesOfRelationshipWithKey. WhatIve found however if say I saying
aUser.addObjectToBothSidesOfRelationshipWithKey(aGroup,"groups");
and changed that to
aGroup.addObjectToBothSidesOfRelationshipWithKey(aUser,"users");
it works fine. Something to do with which object you add the relationship to.
Mind you if you log out and then come back in ( i.e. get a new session ) it works fine anyways. Seems that for some reason ( may be my bad model ) but setting it one way makes all the right entries in the Db but the other Java Object doesn't get updated.
I hope that makes some kind of sense.
owen
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >Updating primary key value (From: Benjamin Adair <email@hidden>) | |
| >Editing context not reflecting edits? (From: Benjamin Adair <email@hidden>) | |
| >Re: Editing context not reflecting edits? (From: Chuck Hill <email@hidden>) | |
| >Re: Editing context not reflecting edits? (From: Owen McKerrow <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.