Re: Weird saveChanges() error
Re: Weird saveChanges() error
- Subject: Re: Weird saveChanges() error
- From: Jean Pierre Malrieu <email@hidden>
- Date: Fri, 7 Nov 2003 13:22:47 +0100
Le 7 nov. 03, ` 01:14, George Domurot a icrit :
JP: Do you need object C for anything other than assisting with your
many-to-many relationship?
Yes, it holds a "rank" attribute (used for ordering) as well as other
attributes. Otherwise, I would have followed the traditional approach
(compound primary key made of foreign keys).
JP.
-G
On Nov 5, 2003, at 4:01 PM, Jean Pierre Malrieu wrote:
Panther, WO 5.2.2.
I have a many-to-many relationship between entity A and B
(A<<-->C<-->>B)
The join entity C has its own primary key and two foreign keys. The
many-to-many is not flattened.
Here is what I am doing:
1/ remove existing relationships from object a and object b (calling
twice removeObjectFromBothsidesOfRelationshipWithKey on join object
c)
2/ delete join object c
3/ save my changes
4/ delete object b
5/ save my changes
Everything works alright.
But If I do:
1/ remove existing relationships from object a and object b (calling
twice removeObjectFromBothsidesOfRelationshipWithKey on join object
c)
2/ delete join object c
3/ delete object b
4/ save changes
I receive the following exception:
[2003-11-05 21:34:30 CET] <WorkerThread12>
java.lang.NullPointerException
at
com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEd
itingContext.java:2592)
at
com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndIni
tializeRec(EOEditingContext.java:2584)
at
com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingCont
ext.java:3000)
at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext
.java:3156)
at DocDisplayGroup.saveChanges(DocDisplayGroup.java:352)
any Ideas?
Thanks.
JP.
_______________________________________________
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.
_______________________________________________
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.