Skip to main content


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 09:34 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
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 10:09 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
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: Thu Mar 28 20:23:01 GMT 2024

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

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

Back to the top