Re: Problem generating primary keys
Re: Problem generating primary keys
- Subject: Re: Problem generating primary keys
- From: Ken Anderson <email@hidden>
- Date: Sun, 22 Aug 2010 15:30:08 -0400
Is the primary key setup as a class property? That could be the issue.
On Aug 22, 2010, at 3:28 PM, Richard Palmer wrote:
> 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
_______________________________________________
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