Reflexive Many-To-Many won't budge
Reflexive Many-To-Many won't budge
- Subject: Reflexive Many-To-Many won't budge
- From: Fred Wells <email@hidden>
- Date: Tue, 16 Oct 2007 17:13:52 -0500
Hello all,
I am trying to get a reflexive many to many relationship to work and it
won't budge. I have read through all of th previous postings on this and
nothing gives an definitive answer on this and my attempts to follow what
had been put up still hasn't worked for me. When trying to add to the relationship
through addObjectsToBoth... I get this error with one side of the relationship:
java.lang.IllegalStateException:
A valid global ID could not be obtained for entity named TaskToTask, relationship
named previousTasks, primary key dictionary {previousTaskPkid = 4; }.
at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForIntermediateRowFromSourceObject(EODatabaseContext.java:5061)
at com.webobjects.eoaccess.EODatabaseContext.recordInsertForIntermediateRowFromSourceObject(EODatabaseContext.java:5077)
at com.webobjects.eoaccess.EODatabaseContext.relayAttributesInRelationshipSourceObjectDestinationObject(EODatabaseContext.java:5103)
as you can see it only has the one primary key in the dictionary [relevant?].
If I try the reverse of the relationship it doesn't error out but it also
doesn't put anything in the DB it just seems to ignore it. I must be missing
something very basic. I have set up the many-to-many like any of the other
m-t-m 's I have that are across two tables. Those workj flawlessly but
this won't do anything.
Frederick Wells
MarketForward, a Publicis Groupe Company
427 South LaSalle St.
Chicago, Il 60605
312.220.3056
------------------------------------------------------------------------
Disclaimer
The information in this email and any attachments may contain legally privileged, proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden