|
|
|
Re: [CDO] Composite Model in CDO [message #764198 is a reply to message #764164] |
Sun, 11 December 2011 16:30 |
|
Am 11.12.2011 15:49, schrieb Khosro Asgharifard Sharabiani:
>> CDO supports resources with instances of multiple models in the same way as EMF >supports this. Just add arbitrary
>> objects to your resources and commit your transaction.
> The problem is that maybe there is a similar class in each Ecore(suppose that there is a Ecore1 that has class Book
> and a Ecore2 that also has class Book ),then when we use a single resource for both Ecore to add instance of their
> models,a conflict occurred.
A conflict occured where? When? Is there a stack trace? What store are you using?
The DBStore for example has several configuration options to disambiguate EClass names, see
http://wiki.eclipse.org/CDO/Server_Configuration_Reference#Element_store
> So that we must create a different resource for each of Ecore(res1 for Ecore1 and res2 for Ecore2.Maybe each of Ecores
> developed by different developer.).
No, CDO supports resources with instances of multiple models in the same way as EMF supports this. Just add arbitrary
objects to your resources and commit your transaction.
> And then how can we understand that they are(res1,res2) related to a single system?
What is a system?
> I think we can use folder(CDOResourceFolder),and add res1 and res2 to a created folder.And now created folder is our
> system.
That's technically possible, too.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds