[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] Importation of Rose model failed
|
- From: s-correia@xxxxxxxxxxxxx (Sebastiao)
- Date: Thu, 21 Aug 2003 13:05:55 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
I have a problem with the two-way association:
I start from a Rational Rose model. The bug is reproductible with the
library example given in the EMF overview.
The problem is the following:
I tried to generate the code for the library model, where the relation
between the objects "Library" and "Book" is bidirectional.
The objects "Book" are contained in "Library".
I expected to generate the following methods:
Library.getBooks()
and
Book.getLibrary().
But none of them are generated and I don't understand why!
The reason that the code is not generated is that "Library has no
attribute "Book" and "Book" has no attribute "Library" when I look in the
genmodel file.
So I think it is the importation from Rose model that is not done
correctly.
If the relation is unidirectional, the method "Library.getBooks()" is
generated as expected. No problem.
Can you help me understand what happens ?
Thanks in advance.