Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to generate references as Emap(Instead of Elist)  () 1 Vote
How to generate references as Emap [message #826653] Thu, 22 March 2012 10:42 Go to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
Hi !

For every 0..* reference on my ecore model, the generated code has a Elist.

But for some references, i would like to have a EMap.

I thought the EKeys properties of the reference should do the job, but i still got EList.

What am I missing ?

Thanks !
Re: How to generate references as Emap [message #826687 is a reply to message #826653] Thu, 22 March 2012 11:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a
href="http://wiki.eclipse.org/index.php/EMF-FAQ#How_do_I_create_a_Map_in_EMF.3F"><span
class="tocnumber">2.29</span> <span class="toctext">How do I
create a Map in EMF?</span></a><br>
<br>
On 22/03/2012 11:42 AM, Missing name Mising name wrote:
<blockquote cite="mid:jkevmc$ch6$1@xxxxxxxxe.org" type="cite">Hi
!
<br>
<br>
For every 0..* reference on my ecore model, the generated code has
a Elist.
<br>
<br>
But for some references, i would like to have a EMap.
<br>
<br>
I thought the EKeys properties of the reference should do the job,
but i still got EList.
<br>
<br>
What am I missing ? <br>
Thanks !
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to generate references as Emap [message #826818 is a reply to message #826687] Thu, 22 March 2012 14:47 Go to previous message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
thanks !
Previous Topic:reusing EditingDomainActionBarContributor for a View
Next Topic:[Teneo] and hibernate 4.0
Goto Forum:
  


Current Time: Fri Apr 26 06:56:35 GMT 2024

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

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

Back to the top