• 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 16:47:04 -0500

Not a class property.  Data type is Long, Class java.lang.Number,  COLUMN_TYPE int(11) on the db.

On Aug 22, 2010, at 2:30 PM, Ken Anderson wrote:

> 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

References: 
 >Problem generating primary keys (From: Richard Palmer <email@hidden>)
 >Re: Problem generating primary keys (From: David Avendasora <email@hidden>)
 >Re: Problem generating primary keys (From: Richard Palmer <email@hidden>)
 >Re: Problem generating primary keys (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Cloud Computing and PCI Compliance
  • Next by Date: Re: Cloud Computing and PCI Compliance
  • Previous by thread: Re: Problem generating primary keys
  • Next by thread: Oracle BOOLEAN type
  • Index(es):
    • Date
    • Thread