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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
>> 
>> This email sent to [email protected]
>> 
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/rdp%40gs.net
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to