Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] CDOView.queryXRefs() vs. EcoreUtil.CrossReferencer.find()
[CDO] CDOView.queryXRefs() vs. EcoreUtil.CrossReferencer.find() [message #1082975] Fri, 09 August 2013 05:34 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
I have a model like this:

EClass Parent
- children: Child 0..*, containment=true, eOpposite=parent

EClass Child
- parent: Parent 1..1

When clearing the Parent.children list and querying the cross references using CDOView.queryXRefs(parent), it will return the children as references, although they have been just removed from the object graph.
Is that the expected behavior?
When using EcoreUtil.CrossReferencer.find(), I do not have this problem, i.e. there are no references returned...

Thanks!
Re: [CDO] CDOView.queryXRefs() vs. EcoreUtil.CrossReferencer.find() [message #1082996 is a reply to message #1082975] Fri, 09 August 2013 06:09 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5486
Registered: July 2009
Senior Member
Am 09.08.2013 11:34, schrieb Erdal Karaca:
> I have a model like this:
>
> EClass Parent
> - children: Child 0..*, containment=true, eOpposite=parent
>
> EClass Child
> - parent: Parent 1..1
>
> When clearing the Parent.children list and querying the cross references using CDOView.queryXRefs(parent), it will
> return the children as references, although they have been just removed from the object graph.
> Is that the expected behavior?
> When using EcoreUtil.CrossReferencer.find(), I do not have this problem, i.e. there are no references returned...
Currently that's the expected behaviour but there's this bug to track a respective enhancement:

402714: Have CDOView.queryXRefs() merge the remote result with possible local changes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402714

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:Change color font through Colorprovider
Next Topic:[Maven][Teneo] Problems with resolving org.hibernate.criterion
Goto Forum:
  


Current Time: Fri Aug 01 06:04:29 EDT 2014

Powered by FUDForum. Page generated in 0.01588 seconds