[CDO] Problem with resource after transaction rollback [message #890123] |
Thu, 21 June 2012 04:12  |
Eclipse User |
|
|
|
Hello,
while doing a test with CDO (4.1) resources I came across the following problem. If I add an object to a resource, rollback, and then try to add the object again. The content size of the resource was 0 as expected after the rollback, but was not 1 after I added the object again.
1. create transaction
2. create resource from transaction
3. add object to resouce -> resource content size 1
4. transaction rollback -> resource content size 0
5. add same object to resource -> resource content size 0 ???
The problem is that the rollback resets the content list of the resource, but the eResource reference of the object is not. If I remove all newly added objects from the resource before doing the rollback, everything works as expected.
Is this behavior a bug or a feature?
cheers,
thomas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08652 seconds