| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Be aware that if you have a two-way relationship where one side is light, and one side is heavy, i.e.:I prefer not modeling the inverse relationship in these cases. The problem is that if the heavy side has already faulted, it will now just be out of sync, so if you DO have to get the results from it, it won't contain your recent update. So I usually don't model the heavy relationship and instead write the equivalent cover methods on the Java class that just fetch them with a fetch spec so they're always fresh.
user <--->> transactions
You might want to call transaction.setUser(u) over transaction.setUserRelationship(u), because the relationship call has to fetch all the transactions for a given user because its not smart enough to notice that user->transactions() is a fault, so it can ignore the "add" step for now...
ms
_______________________________________________ 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
| References: | |
| >Java Packages for Dummies (From: Owen McKerrow <email@hidden>) | |
| >Re: Java Packages for Dummies (From: Chuck Hill <email@hidden>) | |
| >Re: Java Packages for Dummies (From: Owen McKerrow <email@hidden>) | |
| >Re: Java Packages for Dummies (From: "Pierce T. Wetter III" <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.