• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A relationship in a converted model now throws an exception on save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A relationship in a converted model now throws an exception on save


  • Subject: Re: A relationship in a converted model now throws an exception on save
  • From: Kevin Windham <email@hidden>
  • Date: Tue, 6 Jan 2009 18:50:17 -0600


On Jan 6, 2009, at 5:31 PM, David Holt wrote:

An application that I have converted from XCode to Eclipse is throwing an error when I save a new document EO. I went back in and looked at the old version of the model in the XCode app and the relationship is marked as to-one optional. The entity modeler version is mandatory to-one and if I try to set it back to optional, it gives me a warning: "The relationship documentContent is optional but the attribute id does not allow nulls". What do I need to do to model this correctly and/or get rid of the error on save?

David

I may not be the best person to answer this, since I'm not quite current on WO and entity modeler, but I think a sound guess is that the id field to which the relationship is bound has been set to not allow null values. To have an optional relationship, it would seem that you want to allow null in the id field since having something in the id field would imply a related record exists.

Hope that helps,
Kevin
 _______________________________________________
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

References: 
 >A relationship in a converted model now throws an exception on save (From: David Holt <email@hidden>)

  • Prev by Date: Re: Using NULLS FIRST/LAST on sort orderings
  • Next by Date: Re: Using NULLS FIRST/LAST on sort orderings
  • Previous by thread: A relationship in a converted model now throws an exception on save
  • Next by thread: Re: A relationship in a converted model now throws an exception on save
  • Index(es):
    • Date
    • Thread