[CDO-EMF] request for help with new model design [message #426998] |
Tue, 27 January 2009 22:17 |
Mark Geib Messages: 432 Registered: July 2009 |
Senior Member |
|
|
I am looking for suggestions/feedback on a problem my team is trying to
solve using EMF and CDO for persistence of the model(s). The following
is a diagram between two classes in our model, the root of the model and
a class representing libraries. The idea is to have each library host a
model, persisted with CDO containing all the books, for example, within
the local librarie's collection. However we need to give users of the
application access to remote libraries to search those collections as
well. So my question is in two parts. The first is can I have two
relationships between the same two classes, one containment for the
local library, and one non-containment for references to the accessible
remote libraries. So at any library I can get the root object then call
getRemote to get a list of remote libraries, which would end up being a
reference to the model at that remote library.
------------
| Root |
------------
| /\
| \/
| |
remote| | local
0..* \/ | 1..1
------------
| Library |
------------
If the answer is yes, then the next question is, will this work with CDO.
Thanks for any suggestions,
Mark.
|
|
|
Re: [CDO-EMF] request for help with new model design [message #427000 is a reply to message #426998] |
Tue, 27 January 2009 22:25 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Mark,
Yes and yes.
Mark Geib wrote:
> I am looking for suggestions/feedback on a problem my team is trying
> to solve using EMF and CDO for persistence of the model(s). The
> following is a diagram between two classes in our model, the root of
> the model and a class representing libraries. The idea is to have each
> library host a model, persisted with CDO containing all the books, for
> example, within the local librarie's collection. However we need to
> give users of the application access to remote libraries to search
> those collections as well. So my question is in two parts. The first
> is can I have two relationships between the same two classes, one
> containment for the local library, and one non-containment for
> references to the accessible remote libraries. So at any library I can
> get the root object then call getRemote to get a list of remote
> libraries, which would end up being a reference to the model at that
> remote library.
>
> ------------
> | Root |
> ------------
> | /\
> | \/
> | |
> remote| | local
> 0..* \/ | 1..1
> ------------
> | Library |
> ------------
>
>
> If the answer is yes, then the next question is, will this work with CDO.
>
> Thanks for any suggestions,
> Mark.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [CDO-EMF] request for help with new model design [message #427015 is a reply to message #427000] |
Wed, 28 January 2009 09:23 |
|
Guys,
That's what I think, too.
Cheers
/Eike
----
http://thegordian.blogspot.com
Ed Merks schrieb:
> Mark,
>
> Yes and yes.
>
>
> Mark Geib wrote:
>> I am looking for suggestions/feedback on a problem my team is trying
>> to solve using EMF and CDO for persistence of the model(s). The
>> following is a diagram between two classes in our model, the root of
>> the model and a class representing libraries. The idea is to have
>> each library host a model, persisted with CDO containing all the
>> books, for example, within the local librarie's collection. However
>> we need to give users of the application access to remote libraries
>> to search those collections as well. So my question is in two parts.
>> The first is can I have two relationships between the same two
>> classes, one containment for the local library, and one
>> non-containment for references to the accessible remote libraries. So
>> at any library I can get the root object then call getRemote to get a
>> list of remote libraries, which would end up being a reference to the
>> model at that remote library.
>>
>> ------------
>> | Root |
>> ------------
>> | /\
>> | \/
>> | |
>> remote| | local
>> 0..* \/ | 1..1
>> ------------
>> | Library |
>> ------------
>>
>>
>> If the answer is yes, then the next question is, will this work with
>> CDO.
>>
>> Thanks for any suggestions,
>> Mark.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02904 seconds