Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] creating a Map attribute
[TEXO] creating a Map attribute [message #1746527] Mon, 31 October 2016 17:01 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Hi all,
I want to create the following construct:

    @ElementCollection
    @MapKeyColumn(name="name")
    @Column(name="value")
    @CollectionTable(name="example_attributes", joinColumns=@JoinColumn(name="example_id"))
    Map<ContactType, Contact> attributes;


But I don't know how to model the "attributes" map in ecore file. I didn't found an example for it. Any hints are welcome.

TIA,
Ralf.
Re: [TEXO] creating a Map attribute [message #1746849 is a reply to message #1746527] Sun, 06 November 2016 12:50 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ralf,
Here is a link, let me know if you have more questions:
https://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF.3F

gr. Martin
Previous Topic:Property "Unique" for ecore attribute doesn't work
Next Topic:[Texo] @JoinTable generation for one-to-many
Goto Forum:
  


Current Time: Sat Apr 20 04:52:37 GMT 2024

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

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

Back to the top