| [JET] Cross Model Association Lost [message #630077]
||Thu, 30 September 2010 11:07
| Ronan B
Registered: July 2009
I have 2 classes (A and B) and 2 models (X and Y). There is one class in each model (A in X and B in Y). Class B owns a directed composition relationship to Class A. This means A composes B but B actually owns the relationship. My model is UML2.
I am using Jet to transform Class A to Java. This code should contain an attribute representing the composition relationship to B. However, JET does not seem to realise this association exists as the classes are in different models and the relationship is from B to A. If I check the relationship using OCL in Eclipse or RSA by running self.getRelationships() on A I can see the relationships as expected. Using JET and an equivalent oclEvaluate($class,\"self.getRelationships()\") I do not get the relationship returned.
[Updated on: Thu, 30 September 2010 11:21]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02252 seconds