Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Using conflict resolver
[CDO] Using conflict resolver [message #1366176] Mon, 19 May 2014 03:32 Go to next message
Alex Sam is currently offline Alex Sam
Messages: 1
Registered: May 2014
Junior Member
Hello all,

I'm having trouble using any sort of ConflictResolver, I've started to use the AbstractObjectConflictResolver.ThreeWayMerge but I don't know what I'm expected to write in the "resolveConflict(CDOObject arg0, CDORevisionDelta arg1, List<CDORevisionDelta> arg2)" method. I'm having trouble finding any guideline for that, because I really don't know how to use the CDORevisionDelta object.

If you can point me to an snippet or, even better a tutorial, it would be great.

Thank you.
Re: [CDO] Using conflict resolver [message #1394745 is a reply to message #1366176] Sat, 05 July 2014 17:06 Go to previous message
Bernard SARTER is currently offline Bernard SARTER
Messages: 75
Registered: August 2011
Location: Paris, France
Member
Hello,

You can find an example here: https://github.com/eclipse/cdo/blob/master/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ConflictResolverTest.java

It shows how to use CDOMergingConflictResolver, which works 'out of the box' and where you have nothing to implement to solve simple conflicts.

HTH,
Bernard.
Previous Topic:[CDO/Teneo] Update sites for CDO Hibernate Store / Teneo for Luna-based RCP?
Next Topic:CDO Usage with Oracle
Goto Forum:
  


Current Time: Thu Jul 24 09:10:55 EDT 2014

Powered by FUDForum. Page generated in 0.02129 seconds