Re: permanentGlobalID not permanent
Re: permanentGlobalID not permanent
- Subject: Re: permanentGlobalID not permanent
- From: Alexander Spohr <email@hidden>
- Date: Thu, 08 May 2014 10:09:40 +0200
Am 08.05.2014 um 05:36 schrieb Jean-François Veillette <email@hidden>:
Here is the code for the setter:
public void setReference(final ERXGenericRecord ref) { EOKeyGlobalID pgid = ref.permanentGlobalID(); setReferenceGlobalID(ERXKeyGlobalID.globalIDForGID(pgid));
ref.setId(pgid); // this seems to be missing
// added log to debug ... final EOGlobalID gid = editingContext().globalIDForObject(ref); log.debug("GlobalID: " + gid + " permanent: " + pgid); }
give: GlobalID: <EOTemporaryGlobalID: 0 0 127 0 0 1 0 0 -5 -116 1 0 0 0 1 69 -39 18 -94 -76 -125 18 82 -3> permanent: _EOIntegralKeyGlobalID[AGA_Participant (java.lang.Integer)7985]
How should ref know about your pgid? Where do you set the global id of ref? Something like ref.setId(pgid).If you don’t set it ref won’t have a global id and therefore must go to the database to get one.
|
_______________________________________________
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