[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] [CDO] CDOSavePoint and rollback question

Hello.

I have a question about using CDOSavePoint and rollback.
Let's assume the following scenario:
We have an EMF/CDO model that exists of an "ElementStore" that contains an "Element1" and an "Element2" (and those elements have some attributes).
Also let's assume we have two clients that work on this CDO model.
Client 1 now write locks Element1, sets a save point and edits Element1. In the meantime client 2 edits Element2. As passive updates are enabled on client1, Element2 on client 1 is automatically updated with those changes.
Now when client 1 rolls back to the save point (without transmitting anything before), all changes in Element1 (by client 1) and Element2 (by client 2) are undone.
Is that right? If yes, is there a way to only roll back those changes that were done by client 1 itself (in this case only undo Element1 changes).


Regards,
Kai