[elephant-devel] unique object IDs and OIDs

Peter Eddy peter.eddy at gmail.com
Fri Nov 14 20:10:20 UTC 2008


Hello,

I'm a first time user of elephant and I'm using it to build a
prototype application that will send and receive updates to persistent
objects via Json. I'd like to use unique IDs in order for the Json
data to refer to the elephant based persistent objects.

I'm wondering if it is appropriate to use the OIDs that elephant
assigns objects for this purpose. Will these values change during the
lifetime of the associated object?

If using OID values makes sense for this purpose, is there a user-API
way to get an object by its OID? Should I instead add another indexed
field on my object that contains the OID value? It seems like there
should be a way to get an object by it's OID, maybe I'm just missing
it?

thanks in advance,

Peter




More information about the elephant-devel mailing list