• 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: Automatically create record in a to-one relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically create record in a to-one relationship


  • Subject: Re: Automatically create record in a to-one relationship
  • From: Omar <email@hidden>
  • Date: Tue, 28 Jun 2005 23:25:04 -0400

Yes, its setup properly, I can insert records just fine, its when I have
the relationship with the other table that the error occurs.

If I place the registeredObjects() after the saveChanges, it shows the
primary key.

I also put the unlock after the saveChanges() and I got the same deal.

I don't know what I could be doing wrong, any other ideas?

Thanks again,

Omar

Art Isbell wrote:

> On Jun 27, 2005, at 1:47 PM, Omar wrote:
>
>> NSLog (ERXNSLogLog4jBridge.java:38)  - 2Registered Objects:
>> (<er.extensions.ERXGenericRecord pk:"null">)
>> NSLog (ERXNSLogLog4jBridge.java:41)  - A fatal exception occurred: A
>> <b>Table1</b> must have a <b>Table2</b>.
>
>
>     A null primary key doesn't look good.  Do you have automatic
> primary key generation set up correctly for PostgreSQL?
>
> Aloha,
> Art
>
> _______________________________________________
> 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
>
>
 _______________________________________________
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: 
 >Automatically create record in a to-one relationship (From: Omar <email@hidden>)
 >Re: Automatically create record in a to-one relationship (From: Chuck Hill <email@hidden>)
 >Re: Automatically create record in a to-one relationship (From: Omar <email@hidden>)
 >Re: Automatically create record in a to-one relationship (From: Art Isbell <email@hidden>)

  • Prev by Date: Re: [UPDATE-3] wotaskd on 10.4
  • Next by Date: Re: D2JC Form requires every attribute, regardless of what the Model or DB say
  • Previous by thread: Re: Automatically create record in a to-one relationship
  • Next by thread: Webobjects books/place to start?
  • Index(es):
    • Date
    • Thread