Hey everyone,
in my PIM class diagramm I have a couple of classes with a "dataType" stereotype.
In the C# transformation, all of them will be created as structs.
But in the DDL transformation, some of them should end up as tables of their own, others as attributes in another table.
To be more concrete:
I have a class Firm and a class FirmDetails with stereotype datatype.
FirmDetails includes a long list of attributes (name, address etc).
Firm has an attribute firmDetails: FirmDetails.
I assigend a tagged value to the class FirmDetails which is call "include".
What I want to achieve is, that upon DDL transformation, the value is read, and the transformation does not create a separat table for FirmDetails, but puts all of its attributs as attributes of Firm. ( I don't see any point in having two tables for that in the DB, in the application code however its kinda useful to have all data "packed" in a struct).
Since I have tow more cases like this, I need a general template, which gets the tagged value of class A, and if it is "include", takes all the attributes of class A, and adds it as attributs to the target table of that class B, in which A is the type of an attribute.
I am not quite sure about this "add attributes of A to B-thing", so is this at all possible?
Thanks for any help!