Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO-EMF] request for help with new model design
[CDO-EMF] request for help with new model design [message #426998] Tue, 27 January 2009 22:17 Go to next message
Mark Geib is currently offline Mark GeibFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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.


Previous Topic:EMF databinding + undo/redo
Next Topic:[Teneo] ClassCastException, Hibernate problem or Teneo?
Goto Forum:
  


Current Time: Fri Apr 26 04:52:19 GMT 2024

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

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

Back to the top