[CDO] Creating diffs & Storing revisions also at Resource level [message #1831721] |
Thu, 27 August 2020 09:24  |
Eclipse User |
|
|
|
Hi all,
I'm creating a REST API for CDO. When I upload an already existing resource, I use EMFCompare to calculate the differences between the repo version and the uploaded XMI-based version. I then copy the differences to the repo version and commit the transaction.
I've got two questions regarding this approach:
- Does CDO have a similar compare functionality that I could use, or is that only for comparing CDO-based resources? I recently found EMFDiffMerge, how does that compare to EMFCompare? Anybody any experiences?
- When you commit changes to an attribute of an eObject in a resource, you can only see the revisions of this change at the eObject level. Is it possible to also see these changes at the resource-level?
Users can then quickly see what changes are done to a single resource.
Thanks in advance!
Ewoud
|
|
|
Re: [CDO] Creating diffs & Storing revisions also at Resource level [message #1831738 is a reply to message #1831721] |
Thu, 27 August 2020 13:39   |
Eclipse User |
|
|
|
Ewoud Werkman wrote on Thu, 27 August 2020 15:24Does CDO have a similar compare functionality that I could use, or is that only for comparing CDO-based resources? I recently found EMFDiffMerge, how does that compare to EMFCompare? Anybody any experiences?
No, CDO only has a scalable compare functionality to compare an entire CDO repository between two branch points.
Personally, I have no experiences with EMFDiffMerge.
Ewoud Werkman wrote on Thu, 27 August 2020 15:24When you commit changes to an attribute of an eObject in a resource, you can only see the revisions of this change at the eObject level. Is it possible to also see these changes at the resource-level?
Users can then quickly see what changes are done to a single resource.
What do you mean by "you can only see the revisions of this change"? Are you referring to the History view of Eclipse? If so, then no, there's currently no "aggregation" of changes implemented, except for the entire repository.
|
|
|
|
|
|
|
Re: [CDO] Creating diffs & Storing revisions also at Resource level [message #1832040 is a reply to message #1831915] |
Mon, 07 September 2020 06:20  |
Eclipse User |
|
|
|
Quote:You can only change the version by modifying a modeled feature of the root element and successfully committing the change. Frequently locking/changing the same single object can reduce concurrency dramatically.
That is exactly what I am doing, for now. The amount of updates will be low for the current use case.
A future version requires, as you said, a solution at the server side. But I don't know yet how to approach that and what kind of effort that would take. I didn't play with SQL or OCL queries yet (I assume that is what you meant) and need to know more about the internals of CDO before I can do that.
|
|
|
Powered by
FUDForum. Page generated in 0.07629 seconds