• 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: Do FK Ids need to set to ALLOW NULLS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do FK Ids need to set to ALLOW NULLS?


  • Subject: Re: Do FK Ids need to set to ALLOW NULLS?
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 7 Jul 2005 10:29:47 -0700


On Jul 7, 2005, at 9:24 AM, Sam loy wrote:

Since WO is taking care of any one-2-one relationships, do I need to set the allow nulls attritribute in EOModeler to false?

That is for the DB level, a counter part to the optional / mandatory designation on the relation. Habitually, I will set allows null to false for a mandatory to-one. This prevents other processes from adding bad data to the DB.


I keep getting "Country" ID not allowed to be null, after implementing a WOOneToOne Element. I have the CountryFID Allow Nulls set to false. Should I turn it on? Does the value actually get set?

Is it optional? Sounds like the relationship is modelled as optional but the ID as mandatory. First off, I'd check your use of WOOneToOne, it might be misconfigured.

Chuck


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development 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: This email sent to email@hidden
References: 
 >Do FK Ids need to set to ALLOW NULLS? (From: Sam loy <email@hidden>)

  • Prev by Date: Do FK Ids need to set to ALLOW NULLS?
  • Next by Date: WebObjects AJAX Developer/Firm Wanted
  • Previous by thread: Do FK Ids need to set to ALLOW NULLS?
  • Next by thread: WebObjects AJAX Developer/Firm Wanted
  • Index(es):
    • Date
    • Thread