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

Re: Problem generating primary keys


  • Subject: Re: Problem generating primary keys
  • From: Richard Palmer <email@hidden>
  • Date: Sun, 22 Aug 2010 14:28:18 -0500

Very ordinary.

An abstract entity with three concrete subclasses implemented as a single MySql table.

I don't really need the PK, but when I try to save a new instance, no PK is generated (or at least, returned to the EODatabaseContext) and it throws an exception.

Any advice would be most appreciated.

Richard Palmer

On Aug 22, 2010, at 10:50 AM, David Avendasora wrote:

> Hi Richard,
>
> Why do you need the PK? Are you doing something special or out of the ordinary?
>
> Dave
>
>
> On Aug 22, 2010, at 3:31 AM, Richard Palmer wrote:
>
>> 'm confused :-(
>>
>>
>> Primary keys are generated by calling  primaryKeysForNewRowsWithEntity(int count, EOEntity entity) on EOAdapterChannel.  This method, in turn, calls primaryKeyForNewRowWithEntity(EOEntity entity) which is deprecated and simply returns null.
>>
>> These two methods are the same in 5.3.3 and 5.4.3.
>>
>> What am I missing? How do we get primary keys? _______________________________________________
>> 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

 _______________________________________________
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: Problem generating primary keys
      • From: Ken Anderson <email@hidden>
References: 
 >Problem generating primary keys (From: Richard Palmer <email@hidden>)
 >Re: Problem generating primary keys (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Problem generating primary keys
  • Next by Date: Re: Problem generating primary keys
  • Previous by thread: Re: Problem generating primary keys
  • Next by thread: Re: Problem generating primary keys
  • Index(es):
    • Date
    • Thread