Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 07:49:24 EDT 2025

Powered by FUDForum. Page generated in 0.23729 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top