Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reliability EOModeler




On Aug 13, 2007, at 5:54 AM, Frank Stock wrote:

Hi All,

I have a many to many relation with a relation-table. I don't work with propagate key, so I have a primairy key and two foreign keys to the other tables. Those foreign keys cannot be null.

Why? If the table has only those three columns, then propagating the PK is the right thing to do.



Sometimes we see that one of the keys, or both of the foreign keys are zero. I am not able to reproduce that yet, but it is happening to much. Of course when we later delete a row that has a relation to another table with foreign key zero, we get an exception!!!

The only thing that I can think of is that something in your code is setting it to zero. Zero is a valid PK / FK for EOF, not an indication that the key is missing, This might also happen if the key columns in the tables are defined with different types or have subtle differences in the type definitions.


Chuck


I wanted to know if someone else has experienced that. How can I get an zero? Is it because I am not working with propagate keys? My project is very complicated and I use many different EOEditingcontext, but just one instance for the moment.

Thanks,
Frank Stock
_______________________________________________
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/chill% 40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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: 
 >Reliability EOModeler (From: Frank Stock <email@hidden>)



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.