EOGlobalID
EOGlobalID
- Subject: EOGlobalID
- From: Chris Pastore <email@hidden>
- Date: Fri, 22 Apr 2011 13:59:30 -0700
- Acceptlanguage: en-US
- Thread-topic: EOGlobalID
While trying to return an EOGlobalID for a generic record, I am getting a null.
I have a method to fetch a student: private static EOGenericRecord getStudent(EOEditingContext ctx, String sid) { EOGenericRecord student = (EOGenericRecord) EOUtilities.objectMatchingKeyAndValue(ctx, "Student", "studentId", sid); ctx.insertObject(student); //tried with and without inserting it into the context return student; }
Later I try to retrieve that object's EOGlobalID with the following: EOGlobalID globalID = ctx.globalIDForObject((EOGenericRecord) value);
The value of globalID is always null. What am I missing?
Thank you for any help you may be able to offer,
|
_______________________________________________
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