Hello
not sure if I picked the right forum, please give me some advice if not.
I'm using MDA transformations to create a Data Model (PSM) out of a Plattform Independant Model (PIM).
Until build 833 an association between two classes in the PIM resulted in a nullable Foreign Key in the PSM, with 833 the default changed to NotNull.
I'm not fully documented on the change, how to influence the default or so, but I think this will brake models that are fine before 833!
The change was after all requested by me, as of my understanding, we had some communication problems after all.
I need a way to tag or whatever the PIM, so that the PSM (Data Model) will be using NotNull FK or Nullable FK, but the decision is done in the PIM.
Does anybody use the MDA style DDL transformations after all?
Step 1:
I would suggest that the transformation, where one defines the foreign key, is the place where the NotNull token is used on the source attribute to "mark" for NotNull foreign key. The foreign key should default to Null, if no NotNull is used here (this is in the transformation from PIM to PSM).
An option would be a defined tag on the association (not my favorite) to set Null or NotNull.
Step 2: is to invoke the Code Engineering -> Generate DDL that does create the DDL. This Part works fine in 833, so it creates Null or NotNull FK based on Nullability of FK Attribute.
Hope this is clear somehow, please let me know if not.
Check your PIM if it will stand the upgrade to 833 after the default changed from Null FK to NotNull FK ! [smiley=thumbdown.gif]
Greetings
Peter