Can someone help me make sure I understand the difference between ObjectID
and OpenJPAObjectID?

ObjectID is returned from
Object objId = OpenJPAPersistence.getEntityManager(o).getObjectId(o);

And OpenJPAObjectID is returned from
Object openJPAId =
JPAFacadeHelper.toOpenJPAObjectId(JPAFacadeHelper.getMetaData(o), objId);

So far it seems to me that the ObjectID is used by the persistence layer
(OR Mapping part of OpenJPA).
And that OpenJPAId is used by the DataCache layer of OpenJPA.

Is this correct?

Do we really need both?

Frederic

Reply via email to