Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Texo Relation as map(How can I genearate a Map as relation and not List?)
Texo Relation as map [message #1111564] Wed, 18 September 2013 11:51 Go to next message
Michel H is currently offline Michel HFriend
Messages: 2
Registered: September 2013
Junior Member
Hi

I have a problem with EMF and Texo.

The Situation is:
I have 2 Classes: Class A and Class B.
Class A contains 0 to * Objects of Class B.

Alright till now.

Now I have generated with Texo the Model Code.
The relation between Class A and Class B is realised as a List.

This is my Problem, i don't need a List.
I need a Map and not a List

Is there a way, to realise the relation as Map<key, value> ?

Best regards
Michel
Re: Texo Relation as map [message #1111853 is a reply to message #1111564] Wed, 18 September 2013 20:44 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Michel,
0to* containment is modeled as a list. I attached some examples of modeling emaps in EMF, see the xsd/ecore.

gr. Martin


On 09/18/2013 07:12 PM, Michel H wrote:
> Hi
>
> I have a problem with EMF and Texo.
>
> The Situation is:
> I have 2 Classes: Class A and Class B.
> Class A contains 0 to * Objects of Class B.
>
> Alright till now.
>
> Now I have generated with Texo the Model Code.
> The relation between Class A and Class B is realised as a List.
>
> This is my Problem, i don't need a List.
> I need a Map and not a List
>
> Is there a way, to realise the relation as Map<key, value> ?
>
> Best regards
> Michel


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
  • Attachment: emap.xsd
    (Size: 1.48KB, Downloaded 211 times)
  • Attachment: emap.ecore
    (Size: 6.87KB, Downloaded 198 times)
Re: Texo Relation as map [message #1112222 is a reply to message #1111853] Thu, 19 September 2013 09:15 Go to previous message
Michel H is currently offline Michel HFriend
Messages: 2
Registered: September 2013
Junior Member
Thank you very much, this solves my problems.

Best Regards
Michel
Previous Topic:[CDO] Poor performance of CDOResourceImpl.getEObject(String uriFragment) when resolving proxies
Next Topic:Cross reference adapter resolves proxy although it shouldn't?
Goto Forum:
  


Current Time: Fri Apr 26 06:52:03 GMT 2024

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

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

Back to the top