[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] EMF newbie question
|
- From: mc5686@xxxxxxxxx (Mauro Condarelli)
- Date: Thu, 17 Sep 2009 19:52:14 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi Everybody,
I am a complete newbie to EMF and thus, please, bear with me :)
I am trying to setup my first (after tutorials) real EMF project.
I am using annotated java to define my model (as per tutorials, again).
My current problem is: how to fill-up references (contained="false") as
references to a "real" container (something similar to enums, but with a
List of real classes).
I have a series of Interfaces:
IProduct: name, description, price, ...
IOrder: reference to IProduct, quantity, deliveryDate, ...
ICustomer: name, address, ..., List<IOrder>
IFirm: name, address, ..., List<IProduct>, List<ICustomer>
I am simplifying, of course.
My problem is the "reference to IProduct" should not be owned by IOrder,
but a reference to some IProduct already defined and owned by IFirm.
This would be a FOREIGN KEY in SQL.
I would expect an editor showing a (dynamically filled) list (or combo)
but I have been unable to achieve this.
Can someone point me in the right direction?
Thanks in advance.