Re: [Wonder-disc] WODev "PK on Insert" code causes D2W(onder) problem
Re: [Wonder-disc] WODev "PK on Insert" code causes D2W(onder) problem
- Subject: Re: [Wonder-disc] WODev "PK on Insert" code causes D2W(onder) problem
- From: Ashley Aitken <email@hidden>
- Date: Wed, 28 Apr 2004 00:52:33 +0800
Ok, I think I am going to give up on this. It looks like I will have to
back out of using the "PK on Insert" code, although it came so close to
working so nicely (famous last words).
Here's what I tried:
1. I replaced the current code for public static boolean
isNewObject(EOEnterpriseObject eo) in ERExtension.java with some more
specific code (not just checking if the eo.isTemporary()).
Unfortunately, that didn't seem to fix the situation - well the
exception was still thrown.
2. I removed Kelly Hawk's fix for the missing to one-relationship in
the delegate method public boolean
databaseContextFailedToFetchObject(EODatabaseContext context, Object
object, EOGlobalID gid) in ERXDatabaseContextDelegate.
The latter, obviously, stopped the exception, and allowed the
relationship to be edited (correctly) but when it returned the eo had
lost all the other property values entered before the relationship had
been edited (perhaps in-line with what the comments in the code said -
it had returned a cleared fault).
Thanks to all those who suggested possible fixes (and Anjo for
reprimanding me for using private APIs ;-).
Cheers,
Ashley.
--
Ashley Aitken
Perth, Western Australia
mrhatken at mac dot com
_______________________________________________
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.