• 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
EO saveChanges problem: Field 'id' doesn't have a default value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EO saveChanges problem: Field 'id' doesn't have a default value


  • Subject: EO saveChanges problem: Field 'id' doesn't have a default value
  • From: "Sennikov, Dimitri" <email@hidden>
  • Date: Mon, 4 Feb 2008 09:54:16 -0500
  • Thread-topic: EO saveChanges problem: Field 'id' doesn't have a default value

Hi,

 

I have a clients table that refers to an address row in WA_Addresses entity. I get the following exception where WO is trying to save without including ‘id’ attribute.

 

EvaluateExpression failed: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "INSERT INTO WA_Addresses(phone1, phone2, phone3, city, state, country, postalCode, address1, webSite, email, fax, address2) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, ?, NULL, NULL, NULL, ?)" withBindings: 1:"c"(address1), 2:"d"(address2)>: Next exception:SQL State:HY000 -- error code: 1364 -- msg: Field 'id' doesn't have a default value

 

I’m trying to save an EO from the projects entity, that references a Client entity, which in turn references the Address entity. In the end, I get this error. After some of my playing around, the following are my eo_pk_table contents:

 

+--------------+------+

| NAME         | PK   |

+--------------+------+

| WA_Clients   |   65 |

| Est_Projects |   70 |

| WA_Addresses |   13 |

+--------------+------+

 

Has anybody come across this? Can there be anything that I need to do in the code to resolve this?

 

Kind regards,

Dmitri Sennikov

 _______________________________________________
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: EO saveChanges problem: Field 'id' doesn't have a default value
      • From: David Avendasora <email@hidden>
  • Prev by Date: AW: help needed with query
  • Next by Date: Re: help needed with query
  • Previous by thread: AW: help needed with query
  • Next by thread: Re: EO saveChanges problem: Field 'id' doesn't have a default value
  • Index(es):
    • Date
    • Thread