• 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: D2W Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Problem


  • Subject: Re: D2W Problem
  • From: Robert Walker <email@hidden>
  • Date: Fri, 18 Aug 2006 16:40:18 -0400

Dustin,

You aren't using inheritance by chance are you?

From:
http://developer.apple.com/documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/chapter_4_section_3.html#//apple_ref/doc/uid/TP30001018-CH204-BABBEBAI

Allows Null

By default, attributes you add to entities allow null values, except in the case of primary keys. This means that Enterprise Objects allows attributes containing no values to be saved to the data source. In some cases, such as when using inheritance, allowing null values may be necessary.


On Aug 18, 2006, at 4:32 PM, Dustin Withers wrote:

Hello All,

So I have a  foreign key that does not allow nulls and the relationship to the primary is Mandatory.  When I run the direct to web app and create a new record D2W comes back telling me that the foreign key does not allow nulls and will not save the record.  If I allow nulls on the foreign key Entity Modeler complains and says "DBTest/Entity:People/Relationship:building is mandatory but DBTest/Entity:People/Attributes:buildingID allows null." but the D2W app works fine at this point.  I don't mind allowing null but I don't understand why things are functioning this way.

The database is MySQL 4

Any ideas?

-dustin

--
Robert Walker
email@hidden



 _______________________________________________
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

  • Follow-Ups:
    • Re: D2W Problem
      • From: Dustin Withers <email@hidden>
References: 
 >D2W Problem (From: Dustin Withers <email@hidden>)

  • Prev by Date: D2W Problem
  • Next by Date: Re: D2W Problem
  • Previous by thread: D2W Problem
  • Next by thread: Re: D2W Problem
  • Index(es):
    • Date
    • Thread