[CDO] get deleted Revision/CDOObject [message #988986] |
Tue, 04 December 2012 02:39  |
Eclipse User |
|
|
|
I guess this is not related to the used store (using hibernate with latest support for auditing), so asking in general:
If I query the CDOCommitHistory, I can traverse the CDOCommitInfos and get the detachedObjects at that commit time.
However, since the list of detached objects consists of CDOIDAndVersions, I dont know how to get the Revision/CDOObject of that CDOIDAndVersion.
|
|
|
|
Re: [CDO] get deleted Revision/CDOObject [message #988993 is a reply to message #988989] |
Tue, 04 December 2012 03:10  |
Eclipse User |
|
|
|
Thanks, that makes sense!
Eike Stepper wrote on Tue, 04 December 2012 08:48Am 04.12.2012 08:39, schrieb Erdal Karaca:
> I guess this is not related to the used store (using hibernate with latest support for auditing), so asking in general:
>
> If I query the CDOCommitHistory, I can traverse the CDOCommitInfos and get the detachedObjects at that commit time.
>
> However, since the list of detached objects consists of CDOIDAndVersions, I dont know how to get the
> Revision/CDOObject of that CDOIDAndVersion.
That's not possible because these objects have been deleted. If you're asking how to access the objects at the time
before they've been deleted, you can query them through the revision manager by specifying a timestamp that's one
millisecond less than the CDOCommitInfo timestamp. You could also open an audit view at that time.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.04269 seconds