Bonjour,
I do this scenario:
- create a class diagram
- create Class1
- create Class2
- create an association - navigation Class1 -> Class2
- generate Java
Result:
- in the UML model there are two properties below the association
- in the UML model there is no property below Class1
- in Class1.java there is no field referencing to Class2, e.g. myField: Class2
Expected:
I would expect that the Class1.java had a field referencing to Class2.
If I move the property on the UML model from below the association to below the
Class1, the Class1.java has a field referencing Class2. However, when I check
the validity of the UML model in Topcased, this message is displayed:
Root diagnostic
Semantic not defined. The relation A_<class1>_<class2> has no navigability.
(Analysis level)
I compared it with Papyrus UML and it automatically creates the property below
Class1 and the UML model is validated as correct.
So how can I create a property in the UML model that is generated to Java class
and the UML model is valid?
Merci.
Jirka
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users