Hi,
I want to create my own specific MTG for a DWH environment, having stereotypes for dimensions, facts, source and so on.
Creating an MTG as such works. I have my own stereotypes in a toolbox and can add them to diagrams.
But extending the table metaclass does seem to break some things.
While it is still possible to assign a database to an instance of my dimension stereotype, which extends UML::table in the MTG, I cannot set a data type (like NUMBER or varchar2) for the columns I add to the dimension instance.
If I cannot set a data type for a column on a table, I cannot define foreign keys on it.
Also, under tagged values of the dimension, I cannot set DBVERSION and OWNER. I can set a TABLESPACE, though.
See the source code for the MTG below.
Is it not possible, what I'm trying to do? Or am I doing something wrong?
TIA,
Andre
<MDG.Technology version="1.0">
<Documentation id="DWHMODELSCAI" name="DWH Model Technology" version="1.0" notes="Reference Model to define the structure of a DWH" infoURI="http://www.scai.de/"/>
<UMLProfiles>
<UMLProfile profiletype="uml2">
<Documentation id="CD5F51F6-3" name="DWH" version="1.0" notes="DWH"/>
<Content>
<Stereotypes>
<Stereotype name="Dimension" metatype="Dimension" notes="" cx="139" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Table">
<Property name="_Tag" value="1"/>
<Property name="_TagInh" value="1"/>
</Apply>
</AppliesTo>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</UMLProfiles>
<TaggedValueTypes>
<RefData version="1.0" exporter="EA.25">
<DataSet name="Property Types" table="t_propertytypes" filter="Property='#Property#'"/>
</RefData>
</TaggedValueTypes>
<DiagramProfile>
<UMLProfile profiletype="uml2">
<Documentation id="1B130986-F" name="DWH" version="1.0" alias="DWH" notes="DWH"/>
<Content>
<Stereotypes>
<Stereotype name="dwhModel" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Diagram_Logical">
<Property name="alias" value="DWHModel"/>
<Property name="diagramID" value="dwhmodel"/>
<Property name="toolbox" value="DWH"/>
</Apply>
</AppliesTo>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</DiagramProfile>
<UIToolboxes>
<UMLProfile profiletype="uml2">
<Documentation id="CFEA2654-E" name="DWH" version="1.0" notes="DWH"/>
<Content>
<Stereotypes>
<Stereotype name="DWH" notes="Contains DWH Elements" cx="278" cy="174" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="ToolboxPage"/>
</AppliesTo>
<TaggedValues>
<Tag name="DWH::Dimension(UML::Table)" type="" description="" unit="" values="" default=""/>
</TaggedValues>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
</Content>
</UMLProfile>
</UIToolboxes>
</MDG.Technology>