|
Re: [CDO] CDOObject containment problems [message #425918 is a reply to message #425915] |
Thu, 11 December 2008 20:10 |
|
David,
I think you're asking for "containment proxy" support, i.e. the ability
of an object to be directly contained in both a Resource and another
EObject, right?
In CDO 2.0 this should be supported:
246705: Support containment proxies
https://bugs.eclipse.org/bugs/show_bug.cgi?id=246705
But not in CDO 1.0.x!
Personally I never used this feature of EMF but isn't it done via
eSetDirectResource() or so?
Cheers
/Eike
----
http://thegordian.blogspot.com
David Bonneau schrieb:
> Hi all,
>
> I have a problem with resources in CDO. I have the following EMF model :
> Data
> name : String
> Folder -> Datas
> contents : 0..* Datas (containment = true)
> File -> Data
>
> The model is composed of Datas, a Data can be a Folder or a File. A
> Folder can contains Datas, i.e. Files and Folders
>
> I have a first resource : resource1 wich contains a instance of a File
> : myFile
>
> I have a second resource : resource2 which contains a instance of a
> Folder : myFolder.
>
> When I add myFile (of resource1) in myFolder (of resource2) it is
> automatically removed from resource1. It is done in eBasicSetContainer
> method of CDOObjectImpl class.
>
> It seems that it works with pure EMF Resources. How can I manage this
> kind of containment with CDO ?
>
>
> David
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03288 seconds